wasapi: Print the hresult hex value on error

This helps figure out precisely what error enum value was returned,
which can be necessary when the description is too generic
This commit is contained in:
Nirbheek Chauhan 2018-03-25 18:08:58 +05:30
parent e80c044cb3
commit a08d333e56

View file

@ -45,7 +45,7 @@
do { \
if (hr != S_OK) { \
gchar *msg = gst_wasapi_util_hresult_to_string (hr); \
GST_ERROR_OBJECT (self, #func " failed: %s", msg); \
GST_ERROR_OBJECT (self, #func " failed (%x): %s", hr, msg); \
g_free (msg); \
and; \
} \