GNOME Bugzilla – Bug 335553
seeking in cdparanoiasrc with a specific pipeline stops playing
Last modified: 2006-03-23 17:01:11 UTC
Created attachment 61785 [details] testgst.c testcase
Is the seek in that returning TRUE? Which versions of GStreamer/gst-plugins-base are you using? There was a fix in playbin the other day to fix a problem where it would leave the pipeline paused if the seek failed.
The seek returns TRUE and the pipeline does go back to PLAYING state afterwards. Strangely, seeking in the exact same pipeline works fine with ~/gst-plugins-base/tests/examples/seek/seek btw, even if the seek example there is changed to use gst_element_seek() as well (and the extra stuff it does is commented out).
works fine here. can you make a debug log available?
Created attachment 61847 [details] dbg.log.bz2 bzip2'ed log. FWIW, querying after the seek keeps returning a position of 30secs. Possibly there's something wrong with the clipping?
*** This bug has been marked as a duplicate of 326311 ***
Just so it doesn't get lost, there's a work-around for this problem: gst_element_seek (pipeline, ....); gst_element_set_state (pipeline, GST_STATE_PAUSED); gst_element_get_state (pipeline, NULL, NULL, -1); gst_element_set_state (pipeline, GST_STATE_PLAYING);
or better (avoid extra PAUSED <-> PLAYING state change): gst_element_set_state (pipeline, GST_STATE_PAUSED); gst_element_seek (pipeline, ....); gst_element_get_state (pipeline, NULL, NULL, -1); gst_element_set_state (pipeline, GST_STATE_PLAYING); I think...
Thanks for your cooperation and your efforts! :)