NULL State Synchronization

Sebastian Dröge sebastian at centricular.com
Fri Sep 2 06:49:31 UTC 2016


On Thu, 2016-09-01 at 23:46 -0700, ht techdev wrote:
> Hi 
> Apologies, should have clarified it. It is a home brewed decoder,
> which is based on GstVideoDecoder base class. Question; however, is
> somewhat more generic. Specifically, is _stop callback in any way
> synchronized with _handle_frame callback.

Yes, handle_frame() is called from the streaming thread and stop() is
called in the PAUSED->READY state transition after the pads were
deactivated (which blocks on the streaming thread).

However during PAUSED->READY before that, buffer allocation can fail
and you would get a GST_FLOW_FLUSHING, same if you would finish_frame()
at that time. GST_FLOW_FLUSHING is *not* an error that should result in
an error message.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160902/08e0ead4/attachment.sig>


More information about the gstreamer-devel mailing list