Query regarding implementation of Sink element.

Raja Bose C Raja.Bose at realimage.com
Sun Dec 2 23:37:42 PST 2012


Hi,
I got struck with the implementation while writing a sink element, I have a customized queue in sink element to hold the Gstbuffers from the upstream elements, I also span a playback thread which will harvest the Gstbuffers from the customized queue in sink element. Now once I get an EOS from upstream elements, I need to wait until all the Gstbuffers in my customized queue in sink to get harvested from the playback thread. If I infinitely wait in GstBaseSinkClass::event(...) then until all GstBuffers are harvested I won't be able to pause or stop during that time. I don't know how to gracefully achieve this in GStreamer, because from the application I get the EOS event in gst_bus_timed_pop_filtered(...), after which I need to wait for play thread in Sink element to complete (completely harvesting all the GstBuffers in customized queue) and then stop the pipeline.

Is there any mechanism to get the rendering status from the sink element? Or
I need to override the entire rendering thread using GstBasesinkclass::activate_pull(...)

With Regards,
Raja.

________________________________

The contents of this email and any attachment(s) are confidential and intended for the named recipient(s) only. This email shall not attach any liability on the originator or Real Image Media Technologies Pvt. Ltd. or its affiliates. Any views or opinions expressed in this email are solely those of the author and may not necessarily reflect the views or opinions of Real Image Media Technologies Pvt. Ltd. nor its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this email, without the prior written consent of the author, is strictly prohibited. If you have received this email in error, please delete it and notify the sender immediately. Before opening any mail and attachments, please check them for viruses and defects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121203/f8a4f6a6/attachment.html>


More information about the gstreamer-devel mailing list