Hello, my pipeline is very straightforward, a playbin2 for playing avi video files.<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 in the place it should be. I want it to start at 15 seconds from its begining.<br>
(I converted 15 seconds to nanoseconds and it didn't work either)<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"); // it seems it does the seek, but it doesn't it plays the video from the begining.<br>
<br>What is wrong?, I see these line in many examples.<br>Thanks<br><br>Rossana<br>