Playbin missing state notifications

Sebastian Dröge sebastian at centricular.com
Mon Jun 13 07:06:11 UTC 2016


On Mo, 2016-06-13 at 06:12 +0000, Henning Riis wrote:
> 
> In my bus callback I then look for GST_MESSAGE_STATE_CHANGED in order
> to know when the pipeline starts playing. Sometimes this works as
> expected, I get: NULL->READY, READY->PAUSED, PAUSED->PLAYING.
>  
> Sometimes I only get first: NULL->READY. The video starts playing
> anyway however, so something is working but my application just has
> no idea that playback has started.
>  
> This is just on application startup, so preconditions should be the
> same for all runs. I'm guessing something is racing but cannot figure
> out what.
>  
> My only vague guess is that it’s somehow not allowed to set
> GST_STATE_PLAYING before the first full transition from NULL to
> PAUSED (via READY) has completed. But I cannot find documentation
> that confirms this, and it would take a lot of code to queue up my
> state changes like that, so I’d rather not do it unless it’s totally
> necessary.

This seems like a bug and should work as you expect really. Can you
provide a standalone testcase with instructions how to reproduce it and
put it into Bugzilla here:
https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer 

-- 
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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160613/6c225d17/attachment.sig>


More information about the gstreamer-devel mailing list