qtdemux: Possible bug on gst-1.11 gst_element_seek
Submitted by christophe vr
Link to original bug (#778690)
Description
Created attachment 345845
media sample with problem.
Just found an issue when using :
example in code .
" if (!gst_element_seek (m_gst_playbin, m_currentTrickRatio, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT),
GST_SEEK_TYPE_SET, m_last_seek_pos,
GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))"
By some media it always jump back to media start position. (while it for that media works when using gstreamer-0.1 and same seek procedure is followed)
I also tried to add the flag GST_SEEK_FLAG_SNAP_AFTER , then it jumps to so what 2/3 of the movie further (89 minutes). What is typic on the media is that for example it has a video start segment at 41711111 while the audio start segment is 0. When using flag GST_SEEK_FLAG_ACCURATE instead of KEY_UNIT it works but to slow. A media example is : I added the torrent download tracker.
Note we are working on a stb so the basesink runs with sync and async false.
By gst-0.1 this problem does not occur.
Attachment 345845, "media sample with problem.":
rutracker.org.t5352219.torrent.zip
Version: 1.11.1