alsasink: log API errors along with the error code and string

This commit is contained in:
Vincent Penquerc'h 2012-01-16 11:40:16 +00:00
parent d32ce909f1
commit e60027c795

View file

@ -290,9 +290,11 @@ gst_alsasink_init (GstAlsaSink * alsasink, GstAlsaSinkClass * g_class)
}
#define CHECK(call, error) \
G_STMT_START { \
if ((err = call) < 0) \
goto error; \
G_STMT_START { \
if ((err = call) < 0) { \
GST_WARNING_OBJECT (alsa, "Error %d (%s) calling " #call, err, snd_strerror (err)); \
goto error; \
} \
} G_STMT_END;
static GstCaps *