playsinkconvertbin: fix caps leak
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 17:24:10 +0000 (14:24 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 27 Jun 2014 17:25:05 +0000 (14:25 -0300)
Let go the reference to the converter caps after using it

gst/playback/gstplaysinkconvertbin.c

index 8ec85a4..a9272b0 100644 (file)
@@ -418,6 +418,7 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter)
               gst_caps_merge_structure_full (ret, gst_structure_copy (s),
               (cf ? gst_caps_features_copy (cf) : NULL));
         }
+        gst_caps_unref (converter_caps);
       } else {
         ret = peer_caps;
         GST_PLAY_SINK_CONVERT_BIN_FILTER_CAPS (filter, ret);