matroskademux: always perform full seek if seek is flushing

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677838
This commit is contained in:
Mark Nauwelaerts 2012-06-11 12:54:27 +02:00
parent 17b422137a
commit 8b1da8adb2

View file

@ -1980,6 +1980,10 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
/* always do full update if flushing,
* otherwise problems might arise downstream with missing keyframes etc */
update = update || flush;
GST_DEBUG_OBJECT (demux, "New segment %" GST_SEGMENT_FORMAT, &seeksegment);
if (!update) {