mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +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];
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue