linux/drivers/media/video/gspca
Hans de Goede 205260102c V4L/DVB (13141): gspca_sq905c: once one frame is discarded it keeps discarding all frames
While checking all gspca sub drivers pkt_scan functions for a bug I found in
1 of them (and after checking also in another), I noticed a bug in the
gspca_sq905c work queue function, once it has decided to start discarding a
frame because the application is not reading fast enough (and thus returning
buffers to fill fast enough), it never stops discarding.

This patch fixes this by simply completely removing the "discarding"
variable, if we need to discard the current frame because there is no buffer
to store it, the "frame" pointer will be NULL, so that is all we need to
check.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-12-05 18:40:31 -02:00
..
gl860 V4L/DVB(12993b): gl860: Prevent a potential risk of zeroing a floating pointer 2009-09-19 00:49:11 -03:00
m5602 V4L/DVB (13257): gspca - m5602-s5k4aa: Add vflip for Fujitsu Amilo Xi 2528 2009-11-07 12:55:12 -02:00
stv06xx V4L/DVB (13122): gscpa - stv06xx + ov518: dont discard every other frame 2009-11-07 12:55:05 -02:00
conex.c V4L/DVB (12478): ARRAY_SIZE changes 2009-09-12 12:19:05 -03:00
etoms.c V4L/DVB (12478): ARRAY_SIZE changes 2009-09-12 12:19:05 -03:00
finepix.c V4L/DVB (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers. 2009-06-16 18:20:54 -03:00
gspca.c V4L/DVB (13115): gspca - main: More information messages. 2009-12-05 18:40:25 -02:00
gspca.h V4L/DVB (12229): gspca - main: Change the ISOC initialization mechanism. 2009-09-12 12:17:37 -03:00
jeilinj.c V4L/DVB (13140): gspca_jeilinj: once one frame is discarded it keeps discarding all frames 2009-12-05 18:40:31 -02:00
jpeg.h V4L/DVB (11039): gspca - most jpeg subdrivers: Change the JPEG header creation. 2009-03-30 12:43:22 -03:00
Kconfig V4L/DVB (12954): gspca - gl860: Addition of GL860 based webcams 2009-09-19 00:15:36 -03:00
Makefile V4L/DVB (12954): gspca - gl860: Addition of GL860 based webcams 2009-09-19 00:15:36 -03:00
mars.c V4L/DVB (12284): gspca - jpeg subdrivers: Check the result of kmalloc(jpeg header). 2009-07-24 14:03:30 -03:00
mr97310a.c V4L/DVB (13139): gspca_mr97310a: Improve VGA sensor type detection 2009-12-05 18:40:30 -02:00
ov519.c V4L/DVB (13116): gspca - ov519: Webcam 041e:4067 added. 2009-12-05 18:40:25 -02:00
ov534.c V4L/DVB (11973): gspca - ov534: Do the ov772x work again. 2009-06-16 19:07:44 -03:00
pac207.c V4L/DVB (12617): gspca_pac207: enable higher framerates / lower exposure settings 2009-09-12 12:19:53 -03:00
pac7311.c V4L/DVB (13121): gspca - pac7311: add comment about JPEG header 2009-12-05 18:40:27 -02:00
pac_common.h V4L/DVB (8825): gspca: More controls for pac73xx and new webcam 093a:2624. 2008-09-03 18:37:38 -03:00
sn9c20x.c V4L/DVB (12707): gspca - sn9c20x: Add SXGA support to MT9M111 2009-09-12 12:20:14 -03:00
sonixb.c V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message. 2009-06-16 18:20:55 -03:00
sonixj.c V4L/DVB (12696): gspca - sonixj / sn9c102: Two drivers for 0c45:60fc and 0c45:613e. 2009-09-12 12:20:10 -03:00
spca500.c V4L/DVB (12284): gspca - jpeg subdrivers: Check the result of kmalloc(jpeg header). 2009-07-24 14:03:30 -03:00
spca501.c V4L/DVB (12478): ARRAY_SIZE changes 2009-09-12 12:19:05 -03:00
spca505.c V4L/DVB (11969): gspca - spca505: Reinitialize the webcam at resume time. 2009-06-16 19:07:42 -03:00
spca506.c V4L/DVB (12478): ARRAY_SIZE changes 2009-09-12 12:19:05 -03:00
spca508.c V4L/DVB (12226): gspca - spca508: Extend the write_vector routine. 2009-09-12 12:17:33 -03:00
spca561.c V4L/DVB (11872): gspca - spca561: Rename the 'White Balance' control to 'Hue'. 2009-06-16 18:21:15 -03:00
sq905.c V4L/DVB (13138): gspca_sq905: cleanup sq905_dostream 2009-12-05 18:40:30 -02:00
sq905c.c V4L/DVB (13141): gspca_sq905c: once one frame is discarded it keeps discarding all frames 2009-12-05 18:40:31 -02:00
stk014.c V4L/DVB (12284): gspca - jpeg subdrivers: Check the result of kmalloc(jpeg header). 2009-07-24 14:03:30 -03:00
sunplus.c V4L/DVB (12693): gspca - sunplus: The brightness is signed. 2009-09-12 12:20:08 -03:00
t613.c V4L/DVB (12230): gspca - t613: Change tas5130a init sequences. 2009-09-12 12:17:37 -03:00
tv8532.c V4L/DVB (12357): gspca - tv8532: Bad ISOC packet scan 2009-09-12 12:18:20 -03:00
vc032x.c V4L/DVB (12953): gspca - vc032x: Bad GPIO of the Samsung Q1 on start/stop streaming. 2009-09-19 00:15:34 -03:00
zc3xx-reg.h V4L/DVB (9868): gspca - zc3xx: Remove the duplicated register names 2008-12-30 09:38:58 -02:00
zc3xx.c V4L/DVB (13114): gspca - zc3xx.c: Bad init sequences of sensor cs2102. 2009-12-05 18:40:24 -02:00