mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
theoradec: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an accept-caps query
This commit is contained in:
parent
33b1da7b80
commit
0ea4430522
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue