]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/uvc/uvc_video.c
V4L/DVB (9031): uvcvideo: Fix incomplete frame drop when switching to a variable...
[linux-2.6-omap-h63xx.git] / drivers / media / video / uvc / uvc_video.c
index 593aebffe57dc6c34c403c88391e820f32482f75..b7bb23820d803013548ef99ce91ccd52039102fb 100644 (file)
@@ -971,6 +971,11 @@ int uvc_video_enable(struct uvc_video_device *video, int enable)
                return 0;
        }
 
+       if (video->streaming->cur_format->flags & UVC_FMT_FLAG_COMPRESSED)
+               video->queue.flags &= ~UVC_QUEUE_DROP_INCOMPLETE;
+       else
+               video->queue.flags |= UVC_QUEUE_DROP_INCOMPLETE;
+
        if ((ret = uvc_queue_enable(&video->queue, 1)) < 0)
                return ret;