Remove all usage of gst_pad_get_caps(), and replace it with gst_pad_get_allowed_caps...
authorDavid Schleef <ds@schleef.org>
Mon, 12 Jan 2004 03:40:18 +0000 (03:40 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 12 Jan 2004 03:40:18 +0000 (03:40 +0000)
Original commit message from CVS:
Remove all usage of gst_pad_get_caps(), and replace it with
gst_pad_get_allowed_caps() or gst_pad_get_negotiated_cap().

ChangeLog
gst-libs/gst/play/gstplay.c
gst-libs/gst/play/play.c
gst-libs/gst/play/play.old.c

index 1be20b9de6241d5cfdcf5a34be4e2ba2c5197949..1457ec2b606f4530e8d4f513660d2b8d991ba443 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2004-01-11  David Schleef  <ds@schleef.org>
+
+       * ext/alsa/gstalsasrc.c: (gst_alsa_src_set_caps):
+       * ext/faac/gstfaac.c: (gst_faac_sinkconnect):
+       * ext/gdk_pixbuf/gstgdkanimation.c:
+       (gst_gdk_animation_iter_create_pixbuf):
+       * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_sink_link),
+       (gst_gdk_pixbuf_chain):
+       * ext/gdk_pixbuf/gstgdkpixbuf.h:
+       * ext/jack/gstjack.c: (gst_jack_change_state):
+       * ext/xvid/gstxviddec.c: (gst_xviddec_sink_link):
+       * gst-libs/gst/play/gstplay.c: (gst_play_get_sink_element):
+       * gst-libs/gst/play/play.c: (gst_play_get_sink_element):
+       * gst/videofilter/gstvideofilter.c:
+       (gst_videofilter_set_output_size):
+       Remove all usage of gst_pad_get_caps(), and replace it with
+       gst_pad_get_allowed_caps() or gst_pad_get_negotiated_cap().
+
 2004-01-11  David Schleef  <ds@schleef.org>
 
        * configure.ac:
index 7c7ef84949a981d35384325b8e6fdff2275f0e60..bcc5c4d1ec4853b49bbcfcf5c9972f0787f0a23e 100644 (file)
@@ -928,7 +928,7 @@ gst_play_get_sink_element (GstPlay *play,
           gboolean has_video_cap = FALSE;
           gboolean has_audio_cap = FALSE;
 
-          caps = gst_pad_get_caps (GST_PAD (pads->data));
+          caps = gst_pad_get_negotiated_caps (GST_PAD (pads->data));
           structure = gst_caps_get_structure (caps, 0);
 
           if (strcmp (gst_structure_get_name (structure),
index 7c7ef84949a981d35384325b8e6fdff2275f0e60..bcc5c4d1ec4853b49bbcfcf5c9972f0787f0a23e 100644 (file)
@@ -928,7 +928,7 @@ gst_play_get_sink_element (GstPlay *play,
           gboolean has_video_cap = FALSE;
           gboolean has_audio_cap = FALSE;
 
-          caps = gst_pad_get_caps (GST_PAD (pads->data));
+          caps = gst_pad_get_negotiated_caps (GST_PAD (pads->data));
           structure = gst_caps_get_structure (caps, 0);
 
           if (strcmp (gst_structure_get_name (structure),
index 513a3e12de157476e09b6d746afce55c4a4bf4bf..e8c2daf6e708d7fd9dc5b582f169d50be489e9e7 100644 (file)
@@ -911,7 +911,7 @@ gst_play_get_sink_element (GstPlay * play,
                  const char *media_type;
 
                  media_type = gst_structure_get_name (gst_caps_get_structure (
-                     gst_pad_get_caps (GST_PAD (pads->data)), 0));
+                     gst_pad_get_negotiated_caps (GST_PAD (pads->data)), 0));
                  if (strcmp (media_type, "audio/x-raw-int") == 0)
                    {
                      has_audio_cap = TRUE;