subtitleoverlay: fix event unref in (rare) error case
authorRené Stadler <rene.stadler@collabora.co.uk>
Tue, 18 Oct 2011 11:00:29 +0000 (13:00 +0200)
committerRené Stadler <rene.stadler@collabora.co.uk>
Tue, 18 Oct 2011 11:02:43 +0000 (13:02 +0200)
gst/playback/gstsubtitleoverlay.c

index f43d945909b38c47b733f6b3641a57ca1110ecf5..cd795dfd6cbf186df5b1aa8eb31b4b20e29f6952 100644 (file)
@@ -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;
     }