[media] pwc: do not decompress the image unless the state is DONE
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 4 Mar 2014 10:28:11 +0000 (07:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 09:56:38 +0000 (06:56 -0300)
commit1a17948184a3320e0bb0aab561112211d2e9b7a8
treea25e6526939a67a4bde8017a1b2db76981fd17be
parent0647064293d745720fc62e2edc7734fa8af06adf
[media] pwc: do not decompress the image unless the state is DONE

There is no point in trying to decompress a captured frame unless
the buffer state is OK. It won't be used in any other state, and
in fact the contents of the buffer might well be corrupt.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/pwc/pwc-if.c