mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
av1decoder: fail early if no input caps have been provided
The av1decoder class does not implement the ->parse() virtual function, and we always need to add the av1parse element before it. So we should set_needs_format of the decoder to TRUE, then if no parse before it, it can fail with a "not-negotiated" error early, rather than go on and generate unexpected error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4064>
This commit is contained in:
parent
30a05a3999
commit
76585b3a05
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ gst_av1_decoder_init (GstAV1Decoder * self)
|
|||
GstAV1DecoderPrivate *priv;
|
||||
|
||||
gst_video_decoder_set_packetized (GST_VIDEO_DECODER (self), TRUE);
|
||||
gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (self), TRUE);
|
||||
|
||||
self->priv = priv = gst_av1_decoder_get_instance_private (self);
|
||||
|
||||
|
|
Loading…
Reference in a new issue