rndbuffersize: only send flush-stop if it was a flushing seek

This commit is contained in:
Tim-Philipp Müller 2012-05-09 15:14:55 +01:00
parent 65a28698db
commit aef0ad44d4

View file

@ -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);