update for _get_caps() -> _query_caps()
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 15:55:27 +0000 (16:55 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 15 Nov 2011 17:04:44 +0000 (18:04 +0100)
ext/jpeg/gstjpegdec.c
ext/pulse/pulseaudiosink.c
ext/pulse/pulsesink.c
ext/pulse/pulsesrc.c
gst/autodetect/gstautoaudiosink.c
gst/autodetect/gstautoaudiosrc.c
gst/autodetect/gstautovideosink.c
gst/autodetect/gstautovideosrc.c
gst/videocrop/gstaspectratiocrop.c
sys/v4l2/gstv4l2src.c
tests/icles/gdkpixbufsink-test.c

index 1f3ab5d..9ef858e 100644 (file)
@@ -743,7 +743,7 @@ gst_jpeg_dec_getcaps (GstPad * pad, GstCaps * filter)
     GstStructure *s;
     guint i, n;
 
-    peer_caps = gst_pad_get_caps (peer, filter);
+    peer_caps = gst_pad_query_caps (peer, filter);
 
     /* Translate peercaps to image/jpeg */
     peer_caps = gst_caps_make_writable (peer_caps);
index cf7214b..aafb7e4 100644 (file)
@@ -645,7 +645,7 @@ proxypad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer data)
       caps = gst_pad_get_current_caps (pbin->sinkpad);
     } else {
       /* We haven't, so get caps from upstream */
-      caps = gst_pad_get_caps (pad, NULL);
+      caps = gst_pad_query_caps (pad, NULL);
     }
 
     if (gst_pad_accept_caps (sinkpad, caps)) {
@@ -811,7 +811,7 @@ gst_pulse_audio_sink_sink_acceptcaps (GstPulseAudioSink * pbin, GstPad * pad,
   GstCaps *pad_caps = NULL;
   gboolean ret = FALSE;
 
-  pad_caps = gst_pad_get_caps (pad, caps);
+  pad_caps = gst_pad_query_caps (pad, caps);
   if (!pad_caps || gst_caps_is_empty (pad_caps))
     goto out;
 
index 7500196..61da442 100644 (file)
@@ -2028,7 +2028,7 @@ gst_pulsesink_query_acceptcaps (GstPulseSink * psink, GstCaps * caps)
   pa_format_info *format = NULL, *formats[1];
   guint channels;
 
-  pad_caps = gst_pad_get_caps (pad, caps);
+  pad_caps = gst_pad_query_caps (pad, caps);
   ret = pad_caps != NULL;
   gst_caps_unref (pad_caps);
 
index 26b54df..b92f902 100644 (file)
@@ -926,7 +926,7 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
   gboolean result = FALSE;
 
   /* first see what is possible on our source pad */
-  thiscaps = gst_pad_get_caps (GST_BASE_SRC_PAD (basesrc), NULL);
+  thiscaps = gst_pad_query_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))
index 19cbca6..65f7973 100644 (file)
@@ -261,7 +261,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, NULL);
+        el_caps = gst_pad_query_caps (el_pad, NULL);
         gst_object_unref (el_pad);
         GST_DEBUG_OBJECT (sink,
             "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
index b46a88c..92eca00 100644 (file)
@@ -264,7 +264,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, NULL);
+        el_caps = gst_pad_query_caps (el_pad, NULL);
         gst_object_unref (el_pad);
         GST_DEBUG_OBJECT (src,
             "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
index e5cfafe..df01dda 100644 (file)
@@ -257,7 +257,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, NULL);
+        el_caps = gst_pad_query_caps (el_pad, NULL);
         gst_object_unref (el_pad);
         GST_DEBUG_OBJECT (sink,
             "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
index 202e887..626740d 100644 (file)
@@ -260,7 +260,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, NULL);
+        el_caps = gst_pad_query_caps (el_pad, NULL);
         gst_object_unref (el_pad);
         GST_DEBUG_OBJECT (src,
             "Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
index 475af6d..d2e5c59 100644 (file)
@@ -398,7 +398,7 @@ gst_aspect_ratio_crop_get_caps (GstPad * pad, GstCaps * filter)
   } else {
     GstCaps *peer_caps;
 
-    peer_caps = gst_pad_get_caps (peer, filter);
+    peer_caps = gst_pad_query_caps (peer, filter);
     return_caps =
         gst_aspect_ratio_crop_transform_caps (aspect_ratio_crop, peer_caps);
     gst_caps_unref (peer_caps);
index 6f13b28..5912ff5 100644 (file)
@@ -318,7 +318,7 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
   gboolean result = FALSE;
 
   /* first see what is possible on our source pad */
-  thiscaps = gst_pad_get_caps (GST_BASE_SRC_PAD (basesrc), NULL);
+  thiscaps = gst_pad_query_caps (GST_BASE_SRC_PAD (basesrc), NULL);
   GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
   LOG_CAPS (basesrc, thiscaps);
 
index a700a4a..c334326 100644 (file)
@@ -72,7 +72,7 @@ new_decoded_pad (GstElement * dec, GstPad * new_pad, gboolean last,
 
   /* FIXME: is this racy or does decodebin2 make sure caps are always
    * negotiated at this point? */
-  caps = gst_pad_get_caps (new_pad, NULL);
+  caps = gst_pad_query_caps (new_pad, NULL);
   g_return_if_fail (caps != NULL);
 
   s = gst_caps_get_structure (caps, 0);