alsasink: log API errors along with the error code and string
This commit is contained in:
parent
d32ce909f1
commit
e60027c795
@ -291,8 +291,10 @@ gst_alsasink_init (GstAlsaSink * alsasink, GstAlsaSinkClass * g_class)
|
|||||||
|
|
||||||
#define CHECK(call, error) \
|
#define CHECK(call, error) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
if ((err = call) < 0) \
|
if ((err = call) < 0) { \
|
||||||
|
GST_WARNING_OBJECT (alsa, "Error %d (%s) calling " #call, err, snd_strerror (err)); \
|
||||||
goto error; \
|
goto error; \
|
||||||
|
} \
|
||||||
} G_STMT_END;
|
} G_STMT_END;
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user