From: Wim Taymans Date: Mon, 16 May 2011 15:50:15 +0000 (+0200) Subject: -good: fix for new API X-Git-Tag: RELEASE-0.11.1~597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0e301ab1a80f6e6f1919baa318ba792fa24d878;p=platform%2Fupstream%2Fgst-plugins-good.git -good: fix for new API --- diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index 3e3d710..2c42f48 100644 --- a/ext/pulse/pulsesrc.c +++ b/ext/pulse/pulsesrc.c @@ -939,14 +939,14 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc) gboolean result = FALSE; /* first see what is possible on our source pad */ - thiscaps = gst_pad_get_caps_reffed (GST_BASE_SRC_PAD (basesrc)); + thiscaps = gst_pad_get_caps (GST_BASE_SRC_PAD (basesrc), NULL); GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps); /* nothing or anything is allowed, we're done */ if (thiscaps == NULL || gst_caps_is_any (thiscaps)) goto no_nego_needed; /* get the peer caps */ - peercaps = gst_pad_peer_get_caps_reffed (GST_BASE_SRC_PAD (basesrc)); + peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc), NULL); GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps); if (peercaps) { /* get intersection */ diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 2247b47..f15691e 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -262,7 +262,7 @@ gst_auto_audio_sink_find_best (GstAutoAudioSink * sink) * accept only sinks that match with the filter caps */ if (sink->filter_caps) { el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "sink"); - el_caps = gst_pad_get_caps (el_pad); + el_caps = gst_pad_get_caps (el_pad, NULL); gst_object_unref (el_pad); GST_DEBUG_OBJECT (sink, "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT, diff --git a/gst/autodetect/gstautoaudiosrc.c b/gst/autodetect/gstautoaudiosrc.c index f6435a1..698213b 100644 --- a/gst/autodetect/gstautoaudiosrc.c +++ b/gst/autodetect/gstautoaudiosrc.c @@ -265,7 +265,7 @@ gst_auto_audio_src_find_best (GstAutoAudioSrc * src) * accept only sources that match with the filter caps */ if (src->filter_caps) { el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "src"); - el_caps = gst_pad_get_caps (el_pad); + el_caps = gst_pad_get_caps (el_pad, NULL); gst_object_unref (el_pad); GST_DEBUG_OBJECT (src, "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT, diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 089a5a5..16e2c93 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -258,7 +258,7 @@ gst_auto_video_sink_find_best (GstAutoVideoSink * sink) * accept only sinks that match with the filter caps */ if (sink->filter_caps) { el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "sink"); - el_caps = gst_pad_get_caps (el_pad); + el_caps = gst_pad_get_caps (el_pad, NULL); gst_object_unref (el_pad); GST_DEBUG_OBJECT (sink, "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT, diff --git a/gst/autodetect/gstautovideosrc.c b/gst/autodetect/gstautovideosrc.c index 83764b0..4123485 100644 --- a/gst/autodetect/gstautovideosrc.c +++ b/gst/autodetect/gstautovideosrc.c @@ -261,7 +261,7 @@ gst_auto_video_src_find_best (GstAutoVideoSrc * src) * accept only sources that match with the filter caps */ if (src->filter_caps) { el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "src"); - el_caps = gst_pad_get_caps (el_pad); + el_caps = gst_pad_get_caps (el_pad, NULL); gst_object_unref (el_pad); GST_DEBUG_OBJECT (src, "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,