V4L/DVB (13141): gspca_sq905c: once one frame is discarded it keeps discarding all...
authorHans de Goede <hdegoede@redhat.com>
Fri, 9 Oct 2009 07:17:42 +0000 (04:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:31 +0000 (18:40 -0200)
commit205260102c5cef4180982eec88aaeb6934faf214
tree51ae649d6776187e20981d18c3cae0a906bd1311
parent6ca3f255f790764f9cfc41d3ac02823d83dfa5ac
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>
drivers/media/video/gspca/sq905c.c
This page took 0.040594 seconds and 5 git commands to generate.