Log when time_position in gstreamer fails

This commit is contained in:
Thomas Adamcik 2010-04-14 16:04:29 +02:00
parent 3ebad1cbac
commit e4ca6e3156

View File

@ -84,7 +84,8 @@ class GStreamerPlaybackController(BasePlaybackController):
def time_position(self):
try:
return self._bin.query_position(gst.FORMAT_TIME)[0] // gst.MSECOND
except gst.QueryError:
except gst.QueryError, e:
logger.error('time_position failed: %s',e )
return 0
def destroy(self):