mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
vp8dec: Immediately return if opening the decoder failed
Instead of ignoring any errors.
This commit is contained in:
parent
3c216600f5
commit
f0640f205c
1 changed files with 2 additions and 0 deletions
|
@ -487,6 +487,8 @@ gst_vp8_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
|||
ret = open_codec (dec, frame);
|
||||
if (ret == GST_FLOW_CUSTOM_SUCCESS_1)
|
||||
return GST_FLOW_OK;
|
||||
else if (ret != GST_FLOW_OK)
|
||||
return ret;
|
||||
}
|
||||
|
||||
deadline = gst_video_decoder_get_max_decode_time (decoder, frame);
|
||||
|
|
Loading…
Reference in a new issue