From: Steinar H. Gunderson Date: Tue, 30 Oct 2018 16:56:37 +0000 (+0100) Subject: Check the return status of vaDestroyBuffer. X-Git-Tag: 1.8.0~76^2~25 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=beebd51b0eb948a2245d488320c47a0771ca834d;p=nageru Check the return status of vaDestroyBuffer. --- diff --git a/vaapi_jpeg_decoder.cpp b/vaapi_jpeg_decoder.cpp index 07effb5..5143a28 100644 --- a/vaapi_jpeg_decoder.cpp +++ b/vaapi_jpeg_decoder.cpp @@ -305,7 +305,8 @@ public: : dpy(dpy), buf(buf) {} ~VABufferDestroyer() { - vaDestroyBuffer(dpy, buf); + VAStatus va_status = vaDestroyBuffer(dpy, buf); + CHECK_VASTATUS(va_status, "vaDestroyBuffer"); } private: