1. 26 Dec, 2017 5 commits
    • 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
    • wm4's avatar
      lavc, lavf: move avformat static mutex from avcodec to avformat · 86a13bf2
      wm4 authored
      It's completely absurd that libavcodec would care about libavformat
      locking, but it was there because the lock manager was in libavcodec.
      
      This is more stright forward. Changes ABI, but we don't require ABI
      compatibility currently.
      86a13bf2
    • wm4's avatar
      ffplay: drop lock manager use · e24f192a
      wm4 authored
      Deprecated and useless.
      e24f192a
    • wm4's avatar
      lavc: replace and deprecate the lock manager · a04c2c70
      wm4 authored
      Use static mutexes instead of requiring a lock manager. The behavior
      should be roughly the same before and after this change for API users
      which did not set the lock manager at all (except that a minor memory
      leak disappears).
      a04c2c70
    • wm4's avatar
      w32pthreads: always use Vista+ API, drop XP support · 9b121dfc
      wm4 authored
      This removes the XP compatibility code, and switches entirely to SWR
      locks, which are available starting at Windows Vista.
      
      This removes CRITICAL_SECTION use, which allows us to add
      PTHREAD_MUTEX_INITIALIZER, which will be useful later.
      
      Windows XP is hereby not a supported build target anymore. It was
      decided in a project vote that this is OK.
      9b121dfc
  2. 25 Dec, 2017 9 commits
  3. 24 Dec, 2017 12 commits
  4. 23 Dec, 2017 9 commits
  5. 22 Dec, 2017 5 commits