projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b1da7
)
theoradec: use default pad accept-caps handling
author
Thiago Santos
<thiagoss@osg.samsung.com>
Sat, 15 Aug 2015 10:40:55 +0000
(07:40 -0300)
committer
Thiago Santos
<thiagoss@osg.samsung.com>
Sat, 15 Aug 2015 16:44:35 +0000
(13:44 -0300)
Avoids useless check of downstream caps when handling an
accept-caps query
ext/theora/gsttheoradec.c
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoradec.c
b/ext/theora/gsttheoradec.c
index
fdb8a83
..
81589c5
100644
(file)
--- 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