lavd/v4l2: correctly handle error conditions in mmap_read_frame()
authorGiorgio Vazzana <mywing81@gmail.com>
Sat, 9 Mar 2013 13:36:56 +0000 (14:36 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 9 Mar 2013 15:58:53 +0000 (16:58 +0100)
commit0286b425409702a111fe72bc0efe529a5bafc4ed
tree2d4af41eae3e4e5f4ab5a13934cdba4c45123220
parent982070c113d70b4b97743c56ba9cd3e32c70169b
lavd/v4l2: correctly handle error conditions in mmap_read_frame()

In particular:

1) save errno before it (possibly) gets overwritten by other calls
2) do not forget to enqueue the buffer again in case of error

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/v4l2.c