GNOME Bugzilla – Bug 322857
[mpeg2dec] Seeking in byte format
Last modified: 2005-12-21 10:28:05 UTC
When mpeg2dec receives a seek event with format GST_FORMAT_BYTES, the function normal_seek returns failure because it is not able to convert bytes to time. The attached patch makes the function to redirect the byte seeking event to its predecessor (usually demuxer or source).
Created attachment 55434 [details] [review] seek in bytes
This should fix it as well (if not, please re-open): 2005-12-21 Tim-Philipp Müller <tim at centricular dot net> * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_src_event): When getting a seek event, first check if the upstream element can handle it and only do our own seek stuff when it can't (should fix #322856).