[Bug 746949] concat: Add active-pad property

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Mar 29 07:22:39 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=746949

--- Comment #2 from Carlos Rafael Giani <dv at pseudoterminal.org> ---
I have been using it on an embedded system where I need to prioritize streaming
threads. The currently inactive streams get a lower thread priority. This way,
any intensive pre-buffering of not-yet-active streams won't steal CPU time away
from the active stream too often.

The streams are made of several elements, most importantly, a uridecodebin
element. Inside its pad-added callback, a check is made if the stream's srcpad
that is connected to concat is the active pad (this is where I use the
active-pad property). If it is, nothing happens, otherwise, the thread priority
is lowered.
Later on, once that stream becomes the active one, its thread priority is
raised again. This is done in a probe that is attached to the concat sinkpads.
The probe checks for EOS events, and raises the thread priority of the
soon-to-be-active stream.

By the way, one possible alternative for the EOS probes would be some kind of
"about-to-switch" callback that is emitted right before concat switches to the
next pad.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list