From becba526d9e1136ab5c476ef34cdb3f440a374b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Tue, 18 Oct 2011 13:00:29 +0200 Subject: [PATCH] subtitleoverlay: fix event unref in (rare) error case --- gst/playback/gstsubtitleoverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index f43d945..cd795df 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -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; } -- 2.7.4