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)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 2 Jan 2011 14:30:04 +0000 (14:30 +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().

ext/jack/gstjack.c

index 4a987ae..a43c670 100644 (file)
@@ -392,7 +392,7 @@ gst_jack_change_state (GstElement *element)
             l = this->pads;
             while (l) {
                 pad = GST_JACK_PAD (l);
-                caps = gst_pad_get_caps (pad->pad);
+                caps = gst_caps_copy (gst_pad_get_negotiated_caps (pad->pad));
                 gst_caps_set_simple (caps,
                     "rate", G_TYPE_INT, (int)this->bin->rate,
                     "buffer-frames", G_TYPE_INT, (gint)this->bin->nframes,