diff options
author | Matteo Valdina <matteo.valdina@gmail.com> | 2018-08-31 20:48:13 -0500 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-09-03 15:46:11 +0200 |
commit | 947a3204b934d0b98cb347a7034acce04b7e2303 (patch) | |
tree | faa8978e6db01d5289c1b7a2cc4c3069da7595f2 | |
parent | 4ae96e9b4df1a8bf97ddc9fd66f0a022bec097c8 (diff) |
vaapidecode: sets return value in failure case.
In gst_vaapidecode_handle_frame, when there is a decode error
there is a code path the returns an uninitialized value.
Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=797006
-rw-r--r-- | gst/vaapi/gstvaapidecode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index d11b8032..68ec0851 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -760,6 +760,7 @@ error_decode: ret = GST_FLOW_NOT_SUPPORTED; break; default: + ret = GST_FLOW_OK; GST_VIDEO_DECODER_ERROR (vdec, 1, STREAM, DECODE, ("Decoding error"), ("Decode error %d", status), ret); break; |