[cd]webp: always output windows errors

don't hide failures with -v.

Change-Id: I46485a66f266fd9e9e8c640d1051cd22cfa40658
This commit is contained in:
James Zern 2012-10-08 18:33:18 -07:00
parent 7b3eb372ad
commit f2b5d19b30
2 changed files with 12 additions and 16 deletions

View File

@ -95,14 +95,12 @@ static int ReadYUV(FILE* in_file, WebPPicture* const pic) {
#ifdef HAVE_WINCODEC_H #ifdef HAVE_WINCODEC_H
#define IFS(fn) \ #define IFS(fn) \
do { \ do { \
if (SUCCEEDED(hr)) \ if (SUCCEEDED(hr)) { \
{ \ hr = (fn); \
hr = (fn); \ if (FAILED(hr)) fprintf(stderr, #fn " failed %08x\n", hr); \
if (FAILED(hr) && verbose) \ } \
fprintf(stderr, #fn " failed %08x\n", hr); \
} \
} while (0) } while (0)
// modified version of DEFINE_GUID from guiddef.h. // modified version of DEFINE_GUID from guiddef.h.

View File

@ -67,14 +67,12 @@ typedef enum {
#ifdef HAVE_WINCODEC_H #ifdef HAVE_WINCODEC_H
#define IFS(fn) \ #define IFS(fn) \
do { \ do { \
if (SUCCEEDED(hr)) \ if (SUCCEEDED(hr)) { \
{ \ hr = (fn); \
hr = (fn); \ if (FAILED(hr)) fprintf(stderr, #fn " failed %08x\n", hr); \
if (FAILED(hr) && verbose) \ } \
fprintf(stderr, #fn " failed %08x\n", hr); \
} \
} while (0) } while (0)
#ifdef __cplusplus #ifdef __cplusplus