upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:53 +0000 (11:54 +0900)
commit488e5ceeec7dc94a48112ac00badf892549cce20
tree226a9fabf7190603c8eddd0629d457d0d6906fe4
parent19e20a24379cea1d74690d03992b16320dda378c
upstream: [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