splitmuxsrc: Fix extra unref handling queries
[platform/upstream/gst-plugins-good.git] / gst / multifile / gstsplitmuxpartreader.c
index 16d78be..1753b37 100644 (file)
@@ -994,7 +994,6 @@ gst_splitmux_part_reader_src_query (GstSplitMuxPartReader * part,
     return FALSE;
 
   ret = gst_pad_peer_query (target, query);
-  gst_object_unref (GST_OBJECT_CAST (target));
 
   if (ret == FALSE)
     goto out;