From: Wim Taymans Date: Fri, 3 Jun 2011 11:35:49 +0000 (+0200) Subject: thoeraenc: port to 0.11 X-Git-Tag: 1.19.3~511^2~7602 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff071135cb62d1897251bfa02a1fe11187a07adb;p=platform%2Fupstream%2Fgstreamer.git thoeraenc: port to 0.11 --- diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index 9ceec0b..efe776d 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -599,8 +599,8 @@ theora_enc_sink_getcaps (GstPad * pad, GstCaps * filter) GstCaps *caps; /* If we already have caps return them */ - if (GST_PAD_CAPS (pad)) - return gst_caps_ref (GST_PAD_CAPS (pad)); + if ((caps = gst_pad_get_current_caps (pad)) != NULL) + return caps; encoder = GST_THEORA_ENC (gst_pad_get_parent (pad)); if (!encoder) @@ -613,7 +613,7 @@ theora_enc_sink_getcaps (GstPad * pad, GstCaps * filter) GstStructure *s; guint i, n; - peer_caps = gst_pad_get_caps (peer); + peer_caps = gst_pad_get_caps (peer, NULL); /* Translate peercaps to YUV */ peer_caps = gst_caps_make_writable (peer_caps);