[gst-devel] Fwd: trouble seeking in local files

Soren Harward stharward at gmail.com
Sat Aug 16 14:14:12 CEST 2008


On Saturday 16 August 2008 4:13:30 Edward Hervey wrote:
>   You are not waiting for the confirmation that your pipeline has
> properly pre-rolled (reached the PAUSED state). Simply put, Seeks can
> only work when the pipeline is either in the PAUSED or PLAYING state.
>
> You should wait for the GST_MESSAGE_STATE_CHANGED message on the bus
> from the pipeline stating it has successfully changed state to PAUSED
> before sending that seek.

Thanks.  Adding an event loop which calls gst_element_get_state and waits for 
it to return GST_STATE_PAUSED also seems to work.  Is one way better than the 
other?

-- 
Soren Harward
stharward at gmail.com




More information about the gstreamer-devel mailing list