typefindelement: Use gst_event_unref() instead of gst_mini_object_unref() + casting
authorSebastian Dröge <sebastian@centricular.com>
Mon, 13 Apr 2015 15:01:41 +0000 (17:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 13 Apr 2015 15:01:41 +0000 (17:01 +0200)
plugins/elements/gsttypefindelement.c

index 9475a65ae11491524265a13ec552001b793d8b37..e91fbc624f247973fd97a41a7a2f56384eb4eb17 100644 (file)
@@ -504,7 +504,7 @@ gst_type_find_element_src_event (GstPad * pad, GstObject * parent,
 
   if (typefind->mode != MODE_NORMAL) {
     /* need to do more? */
-    gst_mini_object_unref (GST_MINI_OBJECT_CAST (event));
+    gst_event_unref (event);
     return FALSE;
   }
 
@@ -512,7 +512,7 @@ gst_type_find_element_src_event (GstPad * pad, GstObject * parent,
   if (typefind->segment.format != GST_FORMAT_UNDEFINED &&
       GST_EVENT_TYPE (event) == GST_EVENT_SEEK) {
     result = gst_type_find_element_seek (typefind, event);
-    gst_mini_object_unref (GST_MINI_OBJECT_CAST (event));
+    gst_event_unref (event);
     return result;
   } else {
     return gst_pad_push_event (typefind->sink, event);