Commit becba526 authored by René Stadler's avatar René Stadler

subtitleoverlay: fix event unref in (rare) error case

parent 5e9862b2
......@@ -1822,7 +1822,7 @@ gst_subtitle_overlay_video_sink_event (GstPad * pad, GstEvent * event)
if (format != GST_FORMAT_TIME) {
GST_ERROR_OBJECT (pad, "Newsegment event in non-time format: %s",
gst_format_get_name (format));
gst_object_unref (event);
gst_event_unref (event);
gst_object_unref (self);
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment