projects
/
media-ctl.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reset file descriptor value after closing a subdev
[media-ctl.git]
/
src
/
subdev.c
diff --git
a/src/subdev.c
b/src/subdev.c
index
3960d05
..
f8ccfe3
100644
(file)
--- a/
src/subdev.c
+++ b/
src/subdev.c
@@
-51,6
+51,7
@@
int v4l2_subdev_open(struct media_entity *entity)
void v4l2_subdev_close(struct media_entity *entity)
{
close(entity->fd);
+ entity->fd = -1;
}
int v4l2_subdev_get_format(struct media_entity *entity,