Make v4l2_read_header() don't free a stream in case of failure when
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 15 Jul 2008 20:45:42 +0000 (20:45 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 15 Jul 2008 20:45:42 +0000 (20:45 +0000)
commitdeaab5fc32134ea53bff2ab46f95dd493ecf94c1
tree0edd14efa91f03fc239d4718e9ed6d51c7231376
parent7c1d608ece947c49b1ebbba415fada965cb8960f
Make v4l2_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 14247 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/v4l2.c