From: Sebastian Dröge Date: Mon, 16 May 2011 08:48:35 +0000 (+0200) Subject: discoverer: Update for the new gst_pad_get_caps() signature X-Git-Tag: 1.19.3~511^2~7676 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2987ad93587c3a57ce2e7df9948d97bdf47c7e83;p=platform%2Fupstream%2Fgstreamer.git discoverer: Update for the new gst_pad_get_caps() signature --- diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 29a39b0..9472490 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -468,7 +468,7 @@ uridecodebin_pad_added_cb (GstElement * uridecodebin, GstPad * pad, g_object_set (ps->sink, "silent", TRUE, NULL); g_object_set (ps->queue, "max-size-buffers", 1, "silent", TRUE, NULL); - caps = gst_pad_get_caps_reffed (pad); + caps = gst_pad_get_caps (pad, NULL); if (gst_caps_can_intersect (caps, subs_caps)) { /* Subtitle streams are sparse and don't provide any information - don't @@ -582,7 +582,7 @@ collect_stream_information (GstDiscoverer * dc, PrivateStream * ps, guint idx) if (!caps) { GST_WARNING ("Couldn't get negotiated caps from %s:%s", GST_DEBUG_PAD_NAME (ps->pad)); - caps = gst_pad_get_caps (ps->pad); + caps = gst_pad_get_caps (ps->pad, NULL); } if (caps) { GST_DEBUG ("Got caps %" GST_PTR_FORMAT, caps);