nxcodec: update log information
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
69a56e7260
commit
ae9f4e2231
@ -133,7 +133,7 @@ int nxcodec_init(FAR nxcodec_t *codec)
|
|||||||
codec->output.fd = open(codec->output.filename, O_RDONLY);
|
codec->output.fd = open(codec->output.filename, O_RDONLY);
|
||||||
if (codec->output.fd < 0)
|
if (codec->output.fd < 0)
|
||||||
{
|
{
|
||||||
printf("Failed to open input file %s \n", codec->output.filename);
|
printf("Failed to open output file %s \n", codec->output.filename);
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
goto err0;
|
goto err0;
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,9 @@ nxcodec_context_dequeue_buf(FAR nxcodec_context_t *ctx)
|
|||||||
ret = ioctl(codec->fd, VIDIOC_DQBUF, &buf);
|
ret = ioctl(codec->fd, VIDIOC_DQBUF, &buf);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
printf("type: %d VIDIOC_DQBUF, err: %s\n", ctx->type, strerror(errno));
|
printf("%s: VIDIOC_DQBUF - %s\n",
|
||||||
|
V4L2_TYPE_IS_OUTPUT(ctx->type) ? "output" : "capture",
|
||||||
|
strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user