Check the return value of device_try_init() immediately after calling such a
authorLuca Abeni <lucabe72@email.it>
Wed, 28 Apr 2010 08:02:52 +0000 (08:02 +0000)
committerLuca Abeni <lucabe72@email.it>
Wed, 28 Apr 2010 08:02:52 +0000 (08:02 +0000)
commitb01dba14f36aa3ff3d6fe89acf71eddbd65e7027
tree264c8dd93efea9a9ff348601a3a6422fcbcd5457
parent337104ac1fe3ded85e5d43e5717a7d934e3da6c4
Check the return value of device_try_init() immediately after calling such a
function. Avoids the following warning:
libavdevice/v4l2.c: In function ‘v4l2_read_header’:
libavdevice/v4l2.c:586: warning: ‘codec_id’ may be used uninitialized in this function

Originally committed as revision 22986 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/v4l2.c