]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/uvc/uvc_video.c
V4L/DVB (9809): uvcvideo: Add nodrop module parameter to turn incomplete frame drop...
[linux-2.6-omap-h63xx.git] / drivers / media / video / uvc / uvc_video.c
index 186ef9fad80bae87056c1ddb1c783b61d7e28c60..b7160b15e78046b5944e318437e33373c67c906f 100644 (file)
@@ -1003,7 +1003,8 @@ int uvc_video_enable(struct uvc_video_device *video, int enable)
                return 0;
        }
 
-       if (video->streaming->cur_format->flags & UVC_FMT_FLAG_COMPRESSED)
+       if ((video->streaming->cur_format->flags & UVC_FMT_FLAG_COMPRESSED) ||
+           uvc_no_drop_param)
                video->queue.flags &= ~UVC_QUEUE_DROP_INCOMPLETE;
        else
                video->queue.flags |= UVC_QUEUE_DROP_INCOMPLETE;