[gst-devel] Waiting for pipeline to preroll

ved kpl ved.kpl at gmail.com
Tue Jul 28 11:45:59 CEST 2009


.You can wait for GST_MESSAGE_ASYNC_DONE to appear on the bus and then
set the pipeline to playing.

On 7/28/09, Sameer Naik <sameer.subscriptions at damagehead.com> wrote:
> it helped... thanks
>
> On Sun, Jul 26, 2009 at 7:53 PM, Håvard Graff
> <havard.graff at tandberg.com>wrote:
>
>>  The property async=TRUE on your audio and video sinks will make the
>> pipeline PREROLL before going to PLAYING. (They will not go to playing
>> until
>> they have received the first buffer)
>>
>>
>>
>> Regards,
>>
>> Havard
>>
>>
>>  ------------------------------
>>
>> *From:* Sameer Naik [mailto:sameer.subscriptions at damagehead.com]
>> *Sent:* 24. juli 2009 17:19
>> *To:* Discussion of the development of GStreamer
>> *Subject:* [gst-devel] Waiting for pipeline to preroll
>>
>>
>>
>> Hi,
>> I am developing a audio/video application using gstreamer as the playback
>> backend.
>> When i create a audio/video pipeline and set the pipeline to the PLAYING
>> state, a lot of times
>> the playback does not start.
>>
>> Only if i set the pipeline to PAUSED, then put the application to sleep
>> for
>> like 1/10th of a second.
>> and then set the pipeline to PLAYING, everything works well. This problem
>> occurs only when the
>> media has both audio and video streams.
>>
>> I believe this is because the pipeline is set to PLAYING before all pads
>> are generated and
>> connected. i.e. before the audio and video decode and rendering bins are
>> loaded and connected.
>>
>> I think if i wait for the pipeline to PREROLL before setting it to PLAYING
>> will make things function correctly.
>> Can anyone tell me how can i wait for the pipeline to PREROLL completely.
>>
>> Regards
>> ~Sameer
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>




More information about the gstreamer-devel mailing list