diff options
author | David Schleef <ds@schleef.org> | 2004-01-12 03:40:18 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-01-12 03:40:18 +0000 |
commit | d33b0d62aaf6fe0043d3d5b494935b60cd68c808 (patch) | |
tree | fb3e4f0727cc224919d3aff4983cb74a251d4e90 /ext | |
parent | 60809db458162408f0effa28c5819800c78ed90d (diff) | |
download | gst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.tar.gz gst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.tar.bz2 gst-plugins-bad-d33b0d62aaf6fe0043d3d5b494935b60cd68c808.zip |
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().
Diffstat (limited to 'ext')
-rw-r--r-- | ext/faac/gstfaac.c | 2 | ||||
-rw-r--r-- | ext/jack/gstjack.c | 2 | ||||
-rw-r--r-- | ext/xvid/gstxviddec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index b5e4f9f6..182d094e 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -315,7 +315,7 @@ gst_faac_sinkconnect (GstPad *pad, /* if the other side was already set-up, redo that */ if (GST_PAD_CAPS (faac->srcpad)) return gst_faac_srcconnect (faac->srcpad, - gst_pad_get_caps (GST_PAD_PEER (faac->srcpad))); + gst_pad_get_allowed_caps (faac->srcpad)); /* else, that'll be done later */ return GST_PAD_LINK_OK; diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c index 4a987ae1..a43c6707 100644 --- a/ext/jack/gstjack.c +++ b/ext/jack/gstjack.c @@ -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, diff --git a/ext/xvid/gstxviddec.c b/ext/xvid/gstxviddec.c index c74b9947..e57489a6 100644 --- a/ext/xvid/gstxviddec.c +++ b/ext/xvid/gstxviddec.c @@ -364,7 +364,7 @@ g_print ("in: %dx%d\n", xviddec->width, xviddec->height); /* re-nego? or just await src nego? */ if (GST_PAD_CAPS(xviddec->srcpad)) { GstPadLinkReturn ret; - GstCaps *vscaps = gst_pad_get_caps (GST_PAD_PEER (xviddec->srcpad)), *new; + GstCaps *vscaps = gst_pad_get_allowed_caps (xviddec->srcpad), *new; gint i, csp; for (i = 0; i < gst_caps_get_size (vscaps); i++) { |