1. 26 6月, 2021 4 次提交
    • R
      Fix v4l2 data race · 5caeab5f
      Romain Vimont 提交于
      The v4l2_sink implementation directly read the internal video_buffer
      field "pending_frame_consumed", which is protected by the internal
      video_buffer mutex. But this mutex was not locked, so reads were racy.
      
      Lock using the v4l2_sink mutex in addition, and use a separate field to
      avoid depending on the video_buffer internal data.
      5caeab5f
    • R
      Initialize fields before starting a thread · 33fbdc86
      Romain Vimont 提交于
      To avoid data races.
      
      Reported by TSAN.
      33fbdc86
    • R
      Fix assertion race condition in debug mode · f33d3797
      Romain Vimont 提交于
      Commit 21d206f3 added mutex assertions.
      
      However, the "locker" variable to trace the locker thread id was read
      and written by several threads without any protection, so it was racy.
      
      Reported by TSAN.
      f33d3797
    • R
      Initialize controller even if there is no display · 7dca5078
      Romain Vimont 提交于
      The options --no-display and --no-control are independent.
      
      The controller was not initialized when no display was requested,
      because it was assumed that no control could occur without display. But
      that's not true (anymore): for example, it is possible to pass
      --turn-screen-off.
      
      Fixes #2426 <https://github.com/Genymobile/scrcpy/issues/2426>
      7dca5078
  2. 21 6月, 2021 9 次提交
  3. 20 6月, 2021 10 次提交
  4. 17 6月, 2021 1 次提交
  5. 15 6月, 2021 1 次提交
  6. 14 6月, 2021 7 次提交
  7. 12 6月, 2021 1 次提交
    • R
      Fix --lock-video-orientation syntax · f76fe2c0
      Romain Vimont 提交于
      The argument for option --lock-video-orientation has been made optional
      by 5af9d0ee.
      
      With getopt_long(), contrary to mandatory arguments, optional arguments
      must be given with a '=':
      
          --lock-video-orientation 2   # wrong, parse error
          --lock-video-orientation=2   # correct
      f76fe2c0
  8. 11 6月, 2021 3 次提交
  9. 29 5月, 2021 3 次提交
  10. 28 5月, 2021 1 次提交