Re: [PATCH 1/6] v4l2-ctrl: Send change events to all fh for auto cluster slave controls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is also part of a pull request from me (and so has my Signed-off-by already):

http://www.mail-archive.com/linux-media@xxxxxxxxxxxxxxx/msg38018.html

Regards,

	Hans

On Thursday, October 27, 2011 13:17:58 Hans de Goede wrote:
> Otherwise the fh changing the master control won't get the inactive state
> change event for the slave controls.
> 
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  drivers/media/video/v4l2-ctrls.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
> index fc8666a..69e24f4 100644
> --- a/drivers/media/video/v4l2-ctrls.c
> +++ b/drivers/media/video/v4l2-ctrls.c
> @@ -945,6 +945,7 @@ static void new_to_cur(struct v4l2_fh *fh, struct v4l2_ctrl *ctrl,
>  			if (ctrl->cluster[0]->has_volatiles)
>  				ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;
>  		}
> +		fh = NULL;
>  	}
>  	if (changed || update_inactive) {
>  		/* If a control was changed that was not one of the controls
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux