AW: AW: AW: Video hangs at the end (EOS message is never issued)

Sebastian Dröge sebastian at centricular.com
Thu Mar 5 03:42:23 PST 2015


On Do, 2015-03-05 at 11:34 +0000, Thornton, Keith wrote:
> The sync_bus_handler works fine for me :-)

Sure, that one does not use the watches and thus not a GLib mainloop :)

But keep in mind that you get the callbacks from arbitrary threads, and
you should not do anything from that callback that takes considerable
amounts of time (otherwise you easily block the streaming threads for
too long, causing performance problems). And especially never change
pipeline states from the sync bus handler :)

Ideally you would dispatch anything that happens on the sync bus handler
to the Qt main loop and handle it from there.

-- 
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: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150305/2018e709/attachment.sig>


More information about the gstreamer-devel mailing list