audio: Filter for messages we care about, rest will be dropped

This commit is contained in:
Thomas Adamcik 2015-03-13 22:39:52 +01:00
parent 9e8b3263ab
commit faab0b755a

View File

@ -125,9 +125,12 @@ def _process(pipeline, timeout_ms):
timeout = timeout_ms * gst.MSECOND
tags, mime, missing_description = {}, None, None
types = (gst.MESSAGE_ELEMENT | gst.MESSAGE_APPLICATION | gst.MESSAGE_ERROR
| gst.MESSAGE_EOS | gst.MESSAGE_ASYNC_DONE | gst.MESSAGE_TAG)
start = clock.get_time()
while timeout > 0:
message = bus.timed_pop(timeout)
message = bus.timed_pop_filtered(timeout, types)
if message is None:
break