diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 07:40:55 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-15 13:44:35 -0300 |
commit | 0ea4430522cf79f542696b2d8ae49dc4719f3291 (patch) | |
tree | 426c6ec8255b8fc04794e07b394db82572fcb211 | |
parent | 33b1da7b802346550bb4b44ed1eba8865b49612c (diff) |
theoradec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an
accept-caps query
-rw-r--r-- | ext/theora/gsttheoradec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index fdb8a835b..81589c5d3 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -206,6 +206,10 @@ gst_theora_dec_init (GstTheoraDec * dec) * but is not marked that way so data gets parsed and keyframes marked */ gst_video_decoder_set_packetized (GST_VIDEO_DECODER (dec), FALSE); gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (dec), TRUE); + + gst_video_decoder_set_use_default_pad_acceptcaps (GST_VIDEO_DECODER_CAST + (dec), TRUE); + GST_PAD_SET_ACCEPT_TEMPLATE (GST_VIDEO_DECODER_SINK_PAD (dec)); } static gboolean |