mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[utils]: close export fd when deinit
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com> Change-Id: I5a94685d4b1f93c5f56664a8c4a4e63e17757182
This commit is contained in:
@@ -332,6 +332,7 @@ MPP_RET camera_source_deinit(CamSource *ctx)
|
|||||||
mpp_buffer_put(ctx->fbuf[buf.index].buffer);
|
mpp_buffer_put(ctx->fbuf[buf.index].buffer);
|
||||||
}
|
}
|
||||||
munmap(ctx->fbuf[buf.index].start, buf.length);
|
munmap(ctx->fbuf[buf.index].start, buf.length);
|
||||||
|
close(ctx->fbuf[i].export_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close v4l2 device
|
// Close v4l2 device
|
||||||
|
Reference in New Issue
Block a user