[FFmpeg-trac] #1560(avdevice:new): v4l2 device won't open after opening/closing it 16 times
FFmpeg
trac at avcodec.org
Fri Jul 20 17:31:02 CEST 2012
#1560: v4l2 device won't open after opening/closing it 16 times
------------------------------------+------------------------------------
Reporter: tmatth | Owner:
Type: defect | Status: new
Priority: normal | Component: avdevice
Version: git-master | Resolution:
Keywords: v4l2 | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by tmatth):
Replying to [comment:5 Cigaes]:
> Your patch would clearly be right by itself, but the whole paragraph is
just redundant:
> [http://git.linuxtv.org/v4l-
utils.git/blob/HEAD:/lib/libv4l2/libv4l2.c#l578]
> {{{v4l2_open}}} already calls {{{v4l2_fd_open}}}, calling a second time
only uses an additional slot in libv4l2 structures that will never be
deallocated.
> I sent a patch to the devel mailing list.
Well spotted, it wasn't until I went through with gdb that I noticed
v4l2_fd_open was getting called twice. Thanks for sending the patch.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1560#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list