summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-10-02 11:06:05 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 01:18:20 -0200
commit650b95feee353305203724cb2e8b2bc50f6d130a (patch)
tree0649923ba63f58ef9eb0d28d463a23ac12a586d1 /drivers/media/video/uvc/uvcvideo.h
parent9bb7262de9c077ccccb129f47d128edb7af5f92e (diff)
downloadlinux-stable-650b95feee353305203724cb2e8b2bc50f6d130a.tar.gz
linux-stable-650b95feee353305203724cb2e8b2bc50f6d130a.tar.bz2
linux-stable-650b95feee353305203724cb2e8b2bc50f6d130a.zip
[media] uvcvideo: Generate discontinuous sequence numbers when frames are lost
Increase the sequence number of the v4l2_buffer structure regardless of any buffer states, so that discontinuous sequence numbers allow applications to detect lost video frames. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvcvideo.h')
-rw-r--r--drivers/media/video/uvc/uvcvideo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h
index 892e0e51916c..f8901333a3a0 100644
--- a/drivers/media/video/uvc/uvcvideo.h
+++ b/drivers/media/video/uvc/uvcvideo.h
@@ -392,7 +392,6 @@ struct uvc_video_queue {
void *mem;
unsigned int flags;
- __u32 sequence;
unsigned int count;
unsigned int buf_size;
@@ -458,6 +457,7 @@ struct uvc_streaming {
dma_addr_t urb_dma[UVC_URBS];
unsigned int urb_size;
+ __u32 sequence;
__u8 last_fid;
};