pylonsrc: log error codes as hexadecimal for clarity
This commit is contained in:
parent
51c90158dd
commit
07f8711774
@ -4190,13 +4190,13 @@ gst_pylonsrc_create (GstPushSrc * psrc, GstBuffer ** buf)
|
|||||||
if (grabResult.Status != Grabbed) {
|
if (grabResult.Status != Grabbed) {
|
||||||
src->failedFrames += 1;
|
src->failedFrames += 1;
|
||||||
GST_WARNING_OBJECT (src,
|
GST_WARNING_OBJECT (src,
|
||||||
"Failed capture count=%d. Status=%d, ErrorCode=%d", src->failedFrames,
|
"Failed capture count=%d. Status=%d, ErrorCode=0x%.8X", src->failedFrames,
|
||||||
grabResult.Status, grabResult.ErrorCode);
|
grabResult.Status, grabResult.ErrorCode);
|
||||||
} else
|
} else
|
||||||
src->failedFrames = 0;
|
src->failedFrames = 0;
|
||||||
} else {
|
} else {
|
||||||
GST_ERROR_OBJECT (src,
|
GST_ERROR_OBJECT (src,
|
||||||
"Error in the image processing loop. Status=%d, ErrorCode=%d",
|
"Error in the image processing loop. Status=%d, ErrorCode=0x%.8X",
|
||||||
grabResult.Status, grabResult.ErrorCode);
|
grabResult.Status, grabResult.ErrorCode);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user