lavd/v4l2: sanitize logic of device_try_init(), so that it properly signal errors
authorStefano Sabatini <stefasab@gmail.com>
Tue, 15 Jan 2013 11:45:13 +0000 (12:45 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sun, 27 Jan 2013 16:58:16 +0000 (17:58 +0100)
commit5306976be8a69cd3aa32291eb12be0b3dfc55120
tree82df30353b445f3bb19cfe03ac2b68e345a2f644
parent27db2bf0009345a50f97f2516ebc458535442745
lavd/v4l2: sanitize logic of device_try_init(), so that it properly signal errors

Make device_try_init() return an error value, and allow to properly
report errors which are not due to a wrong pixel/codec configuration.

In particular, report intelligible feedback in case of busy device.
libavdevice/v4l2.c