GNOME Bugzilla – Bug 657150
Failed to display end of frame when seeking to end of stream
Last modified: 2011-08-27 06:51:38 UTC
Hi, I tried to seek to end of stream with the following code: gst_element_query_duration (playbin, &fmt, &len); gst_element_seek (playbin, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, len, GST_SEEK_TYPE_SET, -1); The video will stop at current frame without displaying the last key frame. Is there other way to implement seek to end of stream and displaying the last key frame?
Seeking to the end of a stream will just get you an EOS event. If you want to seek to some time before the end of a stream, then you should seek to... before the end of the stream.