]> git.sesse.net Git - nageru/commitdiff
Make CHECK_VASTATUS error messages textual instead of numeric.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Feb 2020 18:07:37 +0000 (19:07 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Feb 2020 18:07:37 +0000 (19:07 +0100)
nageru/mjpeg_encoder.h

index 6ba7f0381bad3a1f3f1ec879e07cf44dcaf7260b..eff361ea4e4cb1ebada2236daef46321e690a942 100644 (file)
@@ -31,7 +31,7 @@ struct VectorDestinationManager;
 
 #define CHECK_VASTATUS(va_status, func)                                 \
     if (va_status != VA_STATUS_SUCCESS) {                               \
-        fprintf(stderr, "%s:%d (%s) failed with %d\n", __func__, __LINE__, func, va_status); \
+        fprintf(stderr, "%s:%d (%s) failed: %s\n", __func__, __LINE__, func, vaErrorStr(va_status)); \
         exit(1);                                                        \
     }