From: Todor Tomov Date: Fri, 8 Apr 2011 08:07:30 +0000 (+0300) Subject: Update stored link flags correctly in media_setup_link() X-Git-Url: https://git.ideasonboard.org/media-ctl.git/commitdiff_plain/5a5014feb7aeef1ccf8146e0a4fb53fc5d22bdcd Update stored link flags correctly in media_setup_link() 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 --- diff --git a/src/media.c b/src/media.c index 7e4174d..e3cab86 100644 --- 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; }