[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] Waiting for pipeline to preroll
From:       ved kpl <ved.kpl () gmail ! com>
Date:       2009-07-28 9:45:59
Message-ID: 7496c23f0907280245u666604a8u78a92ce99e572605 () mail ! gmail ! com
[Download RAW message or body]

.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@damagehead.com> wrote:
> it helped... thanks
>
> On Sun, Jul 26, 2009 at 7:53 PM, Håvard Graff
> <havard.graff@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@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@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic