mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 02:40:39 +01: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:
parent
c22b65ef22
commit
54c4458233
1 changed files with 1 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ MPP_RET camera_source_deinit(CamSource *ctx)
|
|||
mpp_buffer_put(ctx->fbuf[buf.index].buffer);
|
||||
}
|
||||
munmap(ctx->fbuf[buf.index].start, buf.length);
|
||||
close(ctx->fbuf[i].export_fd);
|
||||
}
|
||||
|
||||
// Close v4l2 device
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue