Hi Tim, the seeking is not working, according to the code it is expected it reaches the position that corresponds to the 15 seconds of video and it doesn't. It begins to play from the begining as if no seeking wasn't applied.<br>
According to this code, the seeking it's done (it prints "seek OK")<br><br>// gst int and so on<br>//here I create the pipeline and I attach the callback event<br><br> gst_element_set_state (play, GST_STATE_PLAYING);<br>
<br> gst_element_set_state (play, GST_STATE_PAUSED);<br> if (!gst_element_seek (GST_ELEMENT(play), 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,<br>
GST_SEEK_TYPE_SET, 15*GST_SECOND,<br> GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) {<br> g_print ("Seek failed!\n");}<br> else<br> g_print ("Seek OK!\n")<br>
<br>Thanks, cheers<br><br>Rossana<br><br><div class="gmail_quote">2012/2/25 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, 2012-02-25 at 05:08 -0200, Rossana Guerra wrote:<br>
<br>
> I need it to do a seek at the start of the 'player'.<br>
> This is the code, according to the message, the seek is done, but not<br>
> in the place it should be. I want it to start at 15 seconds from its<br>
> begining<br>
><br>
</div>> ....<br>
<div class="im">> g_print ("Seek OK!\n"); // it seems it does the seek, but it<br>
> doesn't it plays the video from the begining.<br>
><br>
> What is wrong?, I see these line in many examples.<br>
<br>
</div>What is it that actually happens insteaad then? It's not quite clear to<br>
me how it fails.<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>