diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index 53cacca8a6..a259cc18f6 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -1201,10 +1201,9 @@ gst_dvdemux_send_event (GstElement * element, GstEvent * event) } else { GST_OBJECT_UNLOCK (dvdemux); - if (dvdemux->seek_handler) { + if (dvdemux->seek_handler) res = dvdemux->seek_handler (dvdemux, dvdemux->videosrcpad, event); - gst_event_unref (event); - } + gst_event_unref (event); } break; }