gstreamer playbin2: no state change message from NULL to READY

bcxa sz bcxa.sz at gmail.com
Mon Apr 11 01:41:49 PDT 2011


On Thu, Apr 7, 2011 at 4:05 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> On Thu, 2011-04-07 at 10:05 +0800, bcxa sz wrote:
>
>> I just tried to use playbin2 play one avi file. And the file can be
>> played well but from the application side, I can not receive element
>> ffdec/avidemux state change message from NULL to READY. And I can
>> receive element state change message from READY to PAUSED, and from
>> PAUSED to PLAYING.
>>
>> This is strange for other elements (like streamsynchronizer0,
>> playsink0, uridecodebin0, typefind, decodebin20, multiqueue0,
>> inputselector0, ...), I can receive stage change message from NULL to
>> READY.
>>
>> Anybody who help me to explain why? And I want to know how to modify
>> playbin2 then I can get the demux and decoder state change from NULL
>> to READY.
>
> That's most likely because elements that are autoplugged based on
> typefinding/caps discovery are set to READY state before being added to
> decodebin2 (to see if they work).
>
> Why do you need these particular state change messages? The application
> only really needs to look at state change messages coming from the
> top-level pipeline (ie. playbin2).

Thanks Tim. Just realized what you said is correct. At that time, the
element is not yet put into the bin. So no bus to post. Thanks for
your help.
>
>  Cheers
>  -Tim
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


More information about the gstreamer-devel mailing list