summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-06-11 12:54:27 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-06-11 12:59:26 +0200
commit28f287ed05cc9b69c1403d16450dc3d7988ba7a0 (patch)
tree8531568b65a9ab1264849ad570f69954a7f6daef
parenta1e6ee9c17d0381485a06016efa1a56174b42a5a (diff)
matroskademux: always perform full seek if seek is flushing
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677838
-rw-r--r--gst/matroska/matroska-demux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 4b645e909..8696238ac 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -1986,6 +1986,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) {