[FFmpeg-trac] #1560(avdevice:new): v4l2 device won't open after opening/closing it 16 times

FFmpeg trac at avcodec.org
Fri Jul 20 03:55:05 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):

 Earlier patch was no good, I've replaced it with this patch which just
 fixes the error handling. The code currently in master is off, fd would
 never be < 0 since the function would have already returned.

 The original problem still stands. From the documentation it seems that
 v4l2_fd_open takes an already open file descriptor and tries to make it
 open for further use by libv4l2, but I can't see why it's not being closed
 properly.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1560#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list