[0.11] gst-plugins-good: pulsesink: Fixing getcaps function

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Sun Oct 9 20:34:47 PDT 2011


Module: gst-plugins-good
Branch: 0.11
Commit: 358767e2172db2e7190762351b697b4d9eb9b106
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=358767e2172db2e7190762351b697b4d9eb9b106

Author: Thiago Santos <thiago.sousa.santos at collabora.com>
Date:   Sun Oct  9 18:58:29 2011 -0300

pulsesink: Fixing getcaps function

Update getcaps function to 0.11 API

---

 ext/pulse/pulsesink.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index 13723fc..e0686d1 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)



More information about the gstreamer-commits mailing list