niimaq: more specific debugging messages

This commit is contained in:
Joshua M. Doe 2013-06-03 15:38:31 -04:00
parent 10e1b3e910
commit f0e7d6ec0b

View File

@ -93,12 +93,12 @@ static GstFlowReturn gst_niimaqsrc_create (GstPushSrc * psrc,
static GstCaps *gst_niimaqsrc_get_cam_caps (GstNiImaqSrc * src); static GstCaps *gst_niimaqsrc_get_cam_caps (GstNiImaqSrc * src);
static gboolean gst_niimaqsrc_close_interface (GstNiImaqSrc * src); static gboolean gst_niimaqsrc_close_interface (GstNiImaqSrc * src);
#define gst_niimaqsrc_report_imaq_error(code) \ #define gst_niimaqsrc_report_imaq_error(code) \
{ \ { \
static char imaq_error_string[256]; \ static char imaq_error_string[256]; \
if (code) { \ if (code) { \
imgShowError (code, imaq_error_string); \ imgShowError (code, imaq_error_string); \
GST_ERROR ("IMAQ error: %s", imaq_error_string); \ GST_ERROR_OBJECT (src, "IMAQ error: %s", imaq_error_string); \
} \ } \
} }