Make v4l_read_header() don't free a stream in case of failure when
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 15 Jul 2008 20:39:20 +0000 (20:39 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 15 Jul 2008 20:39:20 +0000 (20:39 +0000)
commit7c1d608ece947c49b1ebbba415fada965cb8960f
tree7b083dcec76e3778b13bb7b2897c93fb74afbe39
parentb0367ef00afe74f4fae1ff930ea53e88c46c3d52
Make v4l_read_header() don't free a stream in case of failure when
reading its header. The stream will be freed later in
av_open_input_stream(). Fix a segmentation fault due to a double free
on the same pointer.

Originally committed as revision 14246 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/v4l.c