ext/mpeg2dec/gstmpeg2dec.c: When getting a seek event, first check if the upstream element can handle it and only do ...

Original commit message from CVS:
* 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).
This commit is contained in:
Tim-Philipp Müller 2005-12-21 10:25:34 +00:00
parent eb7ad77b4b
commit 9c580660a8
2 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,10 @@
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).
2005-12-21 Josef Zlomek <josef dot zlomek at xeris dot cz>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>

View file

@ -1325,14 +1325,17 @@ gst_mpeg2dec_src_event (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
/* the all-formats seek logic */
case GST_EVENT_SEEK:
case GST_EVENT_SEEK:{
gst_event_ref (event);
if (!(res = gst_pad_event_default (pad, event))) {
if (mpeg2dec->index)
res = index_seek (pad, event);
else
res = normal_seek (pad, event);
}
gst_event_unref (event);
break;
}
case GST_EVENT_NAVIGATION:
/* Forward a navigation event unchanged */
default: