diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-11-02 09:34:25 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-11-02 09:35:28 +0100 |
commit | 68a64c50ce64c888e3a49b284b128a843f05edc4 (patch) | |
tree | 7de468141a85ad5ac9a3c032f8a1cb9fdc78f966 | |
parent | 60ea5d279c6c320d233a1bd41d8a0ce9f1278866 (diff) |
vp8dec: Immediately return if opening the decoder failed
Instead of ignoring any errors.
-rw-r--r-- | ext/vpx/gstvp8dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c index 7dcd75b7d..b5b4aa3de 100644 --- a/ext/vpx/gstvp8dec.c +++ b/ext/vpx/gstvp8dec.c @@ -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); |