Added some sort of flush operation in mpeg2dec

Original commit message from CVS:
Added some sort of flush operation in mpeg2dec
This commit is contained in:
Wim Taymans 2002-11-02 13:36:39 +00:00
parent e630a05347
commit c0dc6784df

View file

@ -710,7 +710,12 @@ gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
} }
peer_formats++; peer_formats++;
} }
/* at this point, either the seek worked or res == FALSE */ /* at this point, either the seek worked and res = TRUE or res == FALSE and the seek
* failed */
if (res && flush) {
/* if we need to flush, iterate until the buffer is empty */
while (mpeg2_parse (mpeg2dec->decoder) != -1);
}
break; break;
} }
default: default: