Log when time_position in gstreamer fails
This commit is contained in:
parent
3ebad1cbac
commit
e4ca6e3156
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user