mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
alsasink: log API errors along with the error code and string
This commit is contained in:
parent
d32ce909f1
commit
e60027c795
1 changed files with 5 additions and 3 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue