• wm4's avatar
    lavc: remove complex debug code around avcodec init locking · 4ed66517
    wm4 authored
    This is just a lot of complicated and confusing code that had no purpose
    anymore.
    
    Also, the functions return values were checked only sometimes. Locking
    shouldn't fail anyway, so remove the return values. Barely any other
    pthread lock calls check the return value (including more important code
    that is more likely to fail horribly if locking fails).
    
    It could be argued that it might be helpful in some debugging
    situations, or when the user built FFmpeg without thread support against
    all good advice.
    
    But there are dummy atomics too, so the atomic check won't help with
    ensuring correctness absolutely. You gain very little.
    
    Also, for debugging, you can just raise the ASSERT_LEVEL, and then
    libavutil/thread.h will redefine the locking functions to explicitly
    check the return values.
    4ed66517
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...