[FFmpeg-devel] [PATCH] Close vfwcap devices on exit()
Mon Apr 14 20:30:53 CEST 2008
M?ns Rullg?rd wrote:
> Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:
>> On Mon, Apr 14, 2008 at 05:18:31PM +0100, Ramiro Polla wrote:
>>> With some devices and some versions of Windows, if you exit() an
>>> application before you disconnect a VFW driver, that device will
>>> remain unusable until you reboot.
>> I guess you can call me user-unfriendly but to be honest this is so
>> obviously a driver bug I'd say tell your hardware vendor to hire
>> competent developers instead of adding hacks to FFmpeg :-)
>> (I won't really object to this patch though, just giving my opinion).
> I will. Installing atexit() handlers is unfriendly, and there are
> countless other ways a process can exit.
Sure, this also happens when ffmpeg is run from MSYS and is ctrl+c'd.
> OS bugs should, in general,
> not be worked around in FFmpeg.
And FFmpeg should clean up its mess and not just call exit() when it
seems fit, like matthieu pointed out. Any volunteers?
More information about the ffmpeg-devel