projects
/
media-ctl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28212f9
)
Update stored link flags correctly in media_setup_link()
author
Todor Tomov <ttomov@mm-sol.com>
Fri, 8 Apr 2011 08:07:30 +0000
(11:07 +0300)
committer
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 8 Apr 2011 08:32:49 +0000
(10:32 +0200)
The flags stored in media_link structure are not updated correctly if
media_setup_link() is called on an immutable link - the immutable flag
is cleared. Fix this.
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
src/media.c
patch
|
blob
|
history
diff --git
a/src/media.c
b/src/media.c
index
7e4174d
..
e3cab86
100644
(file)
--- a/
src/media.c
+++ b/
src/media.c
@@
-128,8
+128,8
@@
int media_setup_link(struct media_device *media,
return ret;
}
- link->flags = flags;
- link->twin->flags = flags;
+ link->flags =
ulink.
flags;
+ link->twin->flags =
ulink.
flags;
return 0;
}