diff options
-rw-r--r-- | uvc-gadget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uvc-gadget.c b/uvc-gadget.c index 9ef315c..4d59ab8 100644 --- a/uvc-gadget.c +++ b/uvc-gadget.c @@ -597,12 +597,12 @@ uvc_events_process(struct uvc_device *dev) case UVC_EVENT_STREAMON: uvc_video_reqbufs(dev, 4); uvc_video_stream(dev, 1); - break; + return; case UVC_EVENT_STREAMOFF: uvc_video_stream(dev, 0); uvc_video_reqbufs(dev, 0); - break; + return; } ioctl(dev->fd, UVCIOC_SEND_RESPONSE, &resp); |