From 2cb795fc774b712249f70e14d8ac5d0e33824e57 Mon Sep 17 00:00:00 2001 From: Matteo Valdina Date: Fri, 31 Aug 2018 20:48:13 -0500 Subject: [PATCH] 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 --- gst/vaapi/gstvaapidecode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index cdb907f..423b7c6 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; -- 2.7.4