Revert "pulseaudiosink: fix caps leak"
authorThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 29 Nov 2011 20:34:10 +0000 (17:34 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 29 Nov 2011 20:34:49 +0000 (17:34 -0300)
This reverts commit d6a9de9e2aedc8b66ab3219902b5a37e8d65ada2.

setcaps functions aren't supposed to take ownership of the caps passed

ext/pulse/pulseaudiosink.c

index 2227b11..389ce46 100644 (file)
@@ -872,7 +872,6 @@ gst_pulse_audio_sink_sink_setcaps (GstPad * pad, GstCaps * caps)
 
   GST_PULSE_AUDIO_SINK_UNLOCK (pbin);
 
-  gst_caps_unref (caps);
   gst_object_unref (pbin);
 
   return ret;