]> git.sesse.net Git - nageru/commitdiff
Check the return status of vaDestroyBuffer.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 30 Oct 2018 16:56:37 +0000 (17:56 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 30 Oct 2018 16:56:37 +0000 (17:56 +0100)
vaapi_jpeg_decoder.cpp

index 07effb53213c62ae5fa3efa5c49bdb52a149514d..5143a28e4792c158d01a9a4c9404c8c8b214e192 100644 (file)
@@ -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: