mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
h265decoder: fail early if no input caps have been provided
The h265decoder class does not implement the ->parse() virtual function, and we always need to add the h265parse 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
9e8d1dccb4
commit
b92a0a3e84
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ gst_h265_decoder_init (GstH265Decoder * self)
|
|||
GstH265DecoderPrivate *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_h265_decoder_get_instance_private (self);
|
||||
|
||||
|
|
Loading…
Reference in a new issue