Usage of IDLE pad probe to unlink branch before seeking.

Bhavya bhavyar.1992 at gmail.com
Mon Jan 4 08:38:39 PST 2016


Hi All,

I am trying to unlink download branch (tee (src_1 pad) -> queue -> filesink)
when pipeline is in play or pause state.

Before issuing seek request, want to make sure the downloading bin is
removed.

Below are the steps followed,

1) Adding GST_PAD_PROBE_TYPE_IDLE to tee src_1 pad.
2) In pad probe callback, 
         -> Remove probe. 
         -> Unlinking tee_src_1 pad -> queue 
         -> Create thread to remove elements
         -> Returning GST_PAD_PROBE_OK (Will it continue to block?) from the
callback
3) In thread, set queue and filesink state to NULL and remove elements from
bin. Release tee src_1 pad.

I am not aware how these are internally handled in GStreamer, Please let me
know whether the steps followed is correct. 

Since removal happens asynchronously, how to ensure proper state before
seeking?

Thanks & Regards,
Bhavya 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Usage-of-IDLE-pad-probe-to-unlink-branch-before-seeking-tp4675112.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list