diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index ad2607b604..03088902c2 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -810,14 +810,13 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event) GST_DEBUG_OBJECT (rp, "converted start - stop to time"); - format = GST_FORMAT_TIME; - gst_event_unref (event); } else { - format = GST_FORMAT_TIME; flags = 0; } + format = GST_FORMAT_TIME; + flush = ((flags & GST_SEEK_FLAG_FLUSH) != 0); /* start flushing up and downstream so that the loop function pauses and we