The patch number 13816 was added via Jean-Francois Moine <moin...@free.fr>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Jean-Francois Moine  <moin...@free.fr>
gspca - main: Set the current frame pointer when first qbuf.


When not set, some images could be lost.

Priority: high

Signed-off-by: Jean-Francois Moine <moin...@free.fr>


---

 linux/drivers/media/video/gspca/gspca.c |    2 ++
 1 file changed, 2 insertions(+)

diff -r 40f9ad7c1cec -r bdc9ee6ae5f2 linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Sun Dec 13 18:11:07 2009 +0100
+++ b/linux/drivers/media/video/gspca/gspca.c   Mon Dec 14 18:57:49 2009 +0100
@@ -1831,6 +1831,8 @@
        /* put the buffer in the 'queued' queue */
        i = gspca_dev->fr_q;
        gspca_dev->fr_queue[i] = index;
+       if (gspca_dev->fr_i == i)
+               gspca_dev->cur_frame = frame;
        gspca_dev->fr_q = (i + 1) % gspca_dev->nframes;
        PDEBUG(D_FRAM, "qbuf q:%d i:%d o:%d",
                gspca_dev->fr_q,


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/bdc9ee6ae5f2d455aa6140c4820bc7041fc50db2

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to