Re: [yavta PATCH] Return proper error code if STREAMON fails

2015-12-13 Thread Tuukka Toivonen
Hi, Thanks for your feedback. On Saturday, December 12, 2015 17:40:07 Laurent Pinchart wrote: > I wonder if there's really a point calling video_free_buffers() in the > error case. The function will return an error causing the caller to > close the device, which will free the buffers. There are

Re: [yavta PATCH] Return proper error code if STREAMON fails

2015-12-12 Thread Laurent Pinchart
Hi Tuukka, Thank you for the patch. On Monday 30 November 2015 16:46:17 Tuukka Toivonen wrote: > Fix the bug causing success to be returned even if VIDIOC_STREAMON > failed. Also check returned error from VIDIOC_STREAMOFF. > > Signed-off-by: Tuukka Toivonen > --- >

[yavta PATCH] Return proper error code if STREAMON fails

2015-11-30 Thread Tuukka Toivonen
Fix the bug causing success to be returned even if VIDIOC_STREAMON failed. Also check returned error from VIDIOC_STREAMOFF. Signed-off-by: Tuukka Toivonen --- yavta.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/yavta.c b/yavta.c