Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2013-01-24 18:41:52 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-01-25 13:47:57 (GMT)
commitecb1ba3ebbdbd07b8601f2cf63d7b377bf9cb59a (patch)
tree86c35d55e99a07d1d066d762d446fde3e3d7b01d /activity.py
parent874cae39902b8bfb02c115772b95535519aeb253 (diff)
GstPlayer error callback
Add some logging information and fixed the file_path used to get the mime type. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/activity.py b/activity.py
index 284fdd5..d0e0308 100644
--- a/activity.py
+++ b/activity.py
@@ -281,11 +281,12 @@ class JukeboxActivity(activity.Activity):
def __player_error_cb(self, widget, message, detail):
self.player.stop()
- self.player.set_uri(None)
self.control.set_disabled()
- file_path = self.playlist[self.currentplaying]['url']\
- .replace('journal://', 'file://')
+ logging.error('ERROR MESSAGE: %s', message)
+ logging.error('ERROR DETAIL: %s', detail)
+
+ file_path = self.playlist_widget._items[self.playlist_widget._current_playing]['path']
mimetype = mime.get_for_file(file_path)
title = _('Error')