projects
/
media-ctl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a5014f
)
Reset file descriptor value after closing a subdev
author
Todor Tomov <ttomov@mm-sol.com>
Mon, 11 Apr 2011 15:51:16 +0000
(18:51 +0300)
committer
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Apr 2011 14:23:53 +0000
(16:23 +0200)
After a subdev is closed set entity->fd to -1.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
src/subdev.c
patch
|
blob
|
history
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,