mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
pulsesink: Fixing getcaps function
Update getcaps function to 0.11 API
This commit is contained in:
parent
8c762dabb2
commit
358767e217
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue