From 358767e2172db2e7190762351b697b4d9eb9b106 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sun, 9 Oct 2011 18:58:29 -0300 Subject: [PATCH] pulsesink: Fixing getcaps function Update getcaps function to 0.11 API --- ext/pulse/pulsesink.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 13723fc7b3..e0686d169f 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -2018,11 +2018,9 @@ gst_pulsesink_pad_acceptcaps (GstPad * pad, GstCaps * caps) pa_format_info *format = NULL, *formats[1]; guint channels; - pad_caps = gst_pad_get_caps_reffed (pad); - if (pad_caps) { - ret = gst_caps_can_intersect (pad_caps, caps); - gst_caps_unref (pad_caps); - } + pad_caps = gst_pad_get_caps (pad, caps); + ret = pad_caps != NULL; + gst_caps_unref (pad_caps); /* Either template caps didn't match, or we're still in NULL state */ if (!ret || !pbuf->context)