Log gst warnings as well

This commit is contained in:
Thomas Adamcik 2011-05-05 21:45:42 +02:00
parent 6f9be11594
commit 8922ebe0aa

View File

@ -101,6 +101,9 @@ class GStreamer(ThreadingActor):
logger.error(u'%s %s', error, debug)
# FIXME Should we send 'stop_playback' to the backend here? Can we
# differentiate on how serious the error is?
elif message.type == gst.MESSAGE_WARNING:
error, debug = message.parse_warning()
logger.warning(u'%s %s', error, debug)
def _get_backend(self):
backend_refs = ActorRegistry.get_by_class(Backend)