Remove all usage of gst_pad_get_caps(), and replace it with gst_pad_get_allowed_caps() or gst_pad_get_negotiated_cap().

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().
This commit is contained in:
David Schleef 2004-01-12 03:40:18 +00:00 committed by Tim-Philipp Müller
parent 9d2631e7d6
commit d952e72d42

View file

@ -392,7 +392,7 @@ gst_jack_change_state (GstElement *element)
l = this->pads; l = this->pads;
while (l) { while (l) {
pad = GST_JACK_PAD (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, gst_caps_set_simple (caps,
"rate", G_TYPE_INT, (int)this->bin->rate, "rate", G_TYPE_INT, (int)this->bin->rate,
"buffer-frames", G_TYPE_INT, (gint)this->bin->nframes, "buffer-frames", G_TYPE_INT, (gint)this->bin->nframes,