From aef0ad44d420f64b417c96156aea43da114b56ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 May 2012 15:14:55 +0100 Subject: [PATCH] rndbuffersize: only send flush-stop if it was a flushing seek --- gst/debugutils/rndbuffersize.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/debugutils/rndbuffersize.c b/gst/debugutils/rndbuffersize.c index 9b08aeb3cf..8122212abd 100644 --- a/gst/debugutils/rndbuffersize.c +++ b/gst/debugutils/rndbuffersize.c @@ -315,8 +315,10 @@ gst_rnd_buffer_size_src_event (GstPad * pad, GstObject * parent, GST_PAD_STREAM_LOCK (self->sinkpad); - gst_pad_push_event (self->srcpad, gst_event_new_flush_stop (TRUE)); - gst_pad_push_event (self->sinkpad, gst_event_new_flush_stop (TRUE)); + if ((flags & GST_SEEK_FLAG_FLUSH)) { + gst_pad_push_event (self->srcpad, gst_event_new_flush_stop (TRUE)); + gst_pad_push_event (self->sinkpad, gst_event_new_flush_stop (TRUE)); + } GST_INFO_OBJECT (pad, "seeking to offset %" G_GINT64_FORMAT, start);