Hi Tuukka,

On Monday 14 December 2015 09:49:57 Tuukka Toivonen wrote:
> Return the error code if video_enable() and VIDIOC_STREAMON
> fails.
> 
> Signed-off-by: Tuukka Toivonen <tuukka.toivo...@intel.com>

Applied to my tree and pushed, thank you for the patch.

> ---
>  yavta.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/yavta.c b/yavta.c
> index b627725..3d80d3c 100644
> --- a/yavta.c
> +++ b/yavta.c
> @@ -1708,7 +1708,9 @@ static int video_do_capture(struct device *dev,
> unsigned int nframes, }
> 
>       /* Stop streaming. */
> -     video_enable(dev, 0);
> +     ret = video_enable(dev, 0);
> +     if (ret < 0)
> +             return ret;
> 
>       if (nframes == 0) {
>               printf("No frames captured.\n");

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to