vp8dec: Immediately return if opening the decoder failed

Instead of ignoring any errors.
This commit is contained in:
Sebastian Dröge 2012-11-02 09:34:25 +01:00
parent 3c216600f5
commit f0640f205c

View file

@ -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);