From f3020dbf8234030a68999dca8463b0276f24e32b Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Fri, 19 Nov 2021 11:39:07 -0500 Subject: [PATCH] matroxsrc: show MIL error when failing to allocate digitizer --- sys/matrox/gstmatroxsrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/matrox/gstmatroxsrc.c b/sys/matrox/gstmatroxsrc.c index 6cfa26c..c3004a8 100644 --- a/sys/matrox/gstmatroxsrc.c +++ b/sys/matrox/gstmatroxsrc.c @@ -510,8 +510,10 @@ gst_matroxsrc_start (GstBaseSrc * bsrc) &src->MilDigitizer); } if (ret == M_NULL) { + MIL_TEXT_CHAR err_msg[M_ERROR_MESSAGE_SIZE]; + MappGetError (M_DEFAULT, M_CURRENT | M_MESSAGE, err_msg); GST_ELEMENT_ERROR (src, RESOURCE, FAILED, - ("Failed to allocate a MIL digitizer"), (NULL)); + ("Failed to allocate a MIL digitizer: %s", err_msg), (NULL)); goto error; }