[gst-devel] New segment update
Wim Taymans
wim.taymans at gmail.com
Wed Dec 23 14:55:14 CET 2009
On Wed, 2009-12-23 at 17:21 +0530, Jyoti wrote:
> Hi All,
>
> For my player application am required to frequently update the
> playback
> segment values. Currently am seeking the first segment as below:
>
> gst_element_seek
> (
> pipeline,
> 1.0,
> GST_FORMAT_TIME,
> GST_SEEK_FLAG_SEGMENT, SEEK_TYPE_SET,
> (0 * GST_SECOND),
> GST_SEEK_TYPE_NONE,
> -1
> );
>
> After sometime I get GST_MESSAGE_SEGMENT_DONE. Now I want to update
> the my NEW_SEGMENT from the last
> played value to the total duration.
Since you configured the playback segment to play to the end of the
stream, the SEGMENT_DONE message is posted as soon as the last byte of
the data is pushed in the pipeline (by the demuxer or source).
In light of this, your question does not make any sense. What are you
trying to do?
>
>
> Can someone tell me how can I update the NEW_SEGMENT values.
What do mean with 'NEW_SEGMENT values'? Maybe you mean changing the
playback segment start and stop values? Maybe you mean the values of the
NEW_SEGMENT event?
> And what changes to be done with pipeline state, before or after doing
> the seek for
> NEW_SEGMENT?
What's a 'seek for NEW_SEGMENT'? maybe you mean that you want to perform
a segment seek? In any case, this has nothing to do with state changes.
In general, seeking can be done in either PAUSED or PLAYING. Performing
a non-flushing seek will usually block the caller until the PLAYING
state is reached (so you usually want to perform non-flushing seeks in
PLAYING).
Wim
>
> Thanks,
> Jyoti
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________ 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