mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
e630a05347
commit
c0dc6784df
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue