After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657150 - Failed to display end of frame when seeking to end of stream
Failed to display end of frame when seeking to end of stream
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.10.22
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-23 10:29 UTC by Chng JP
Modified: 2011-08-27 06:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chng JP 2011-08-23 10:29:50 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?
Comment 1 David Schleef 2011-08-27 06:51:38 UTC
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.