diff options
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++) { |