pulsesink: Fixing getcaps function

Update getcaps function to 0.11 API
This commit is contained in:
Thiago Santos 2011-10-09 18:58:29 -03:00
parent 8c762dabb2
commit 358767e217

View file

@ -2018,11 +2018,9 @@ gst_pulsesink_pad_acceptcaps (GstPad * pad, GstCaps * caps)
pa_format_info *format = NULL, *formats[1]; pa_format_info *format = NULL, *formats[1];
guint channels; guint channels;
pad_caps = gst_pad_get_caps_reffed (pad); pad_caps = gst_pad_get_caps (pad, caps);
if (pad_caps) { ret = pad_caps != NULL;
ret = gst_caps_can_intersect (pad_caps, caps); gst_caps_unref (pad_caps);
gst_caps_unref (pad_caps);
}
/* Either template caps didn't match, or we're still in NULL state */ /* Either template caps didn't match, or we're still in NULL state */
if (!ret || !pbuf->context) if (!ret || !pbuf->context)