mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
thoeraenc: port to 0.11
This commit is contained in:
parent
b1aec14767
commit
ff071135cb
1 changed files with 3 additions and 3 deletions
|
@ -599,8 +599,8 @@ theora_enc_sink_getcaps (GstPad * pad, GstCaps * filter)
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
/* If we already have caps return them */
|
/* If we already have caps return them */
|
||||||
if (GST_PAD_CAPS (pad))
|
if ((caps = gst_pad_get_current_caps (pad)) != NULL)
|
||||||
return gst_caps_ref (GST_PAD_CAPS (pad));
|
return caps;
|
||||||
|
|
||||||
encoder = GST_THEORA_ENC (gst_pad_get_parent (pad));
|
encoder = GST_THEORA_ENC (gst_pad_get_parent (pad));
|
||||||
if (!encoder)
|
if (!encoder)
|
||||||
|
@ -613,7 +613,7 @@ theora_enc_sink_getcaps (GstPad * pad, GstCaps * filter)
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
guint i, n;
|
guint i, n;
|
||||||
|
|
||||||
peer_caps = gst_pad_get_caps (peer);
|
peer_caps = gst_pad_get_caps (peer, NULL);
|
||||||
|
|
||||||
/* Translate peercaps to YUV */
|
/* Translate peercaps to YUV */
|
||||||
peer_caps = gst_caps_make_writable (peer_caps);
|
peer_caps = gst_caps_make_writable (peer_caps);
|
||||||
|
|
Loading…
Reference in a new issue