H264: Don't disable compiler warning by using NO_THREAD_SAFETY_ANALYSIS.
The LockManagerOperation global function uses void** which does not work well with the thread_annotations.h macros and produce compiler warnings on clang (chromium default). Workarounds to this is hacky and unhelpful so we disable the analysis for this function, which isn't helpful in this case anyway. webrtc_h264_config is no longer needed and is removed. BUG=8090, 8119 Review-Url: https://codereview.webrtc.org/3000263002 Cr-Commit-Position: refs/heads/master@{#19425}
This commit is contained in:
2
webrtc/modules/video_coding/codecs/h264/OWNERS
Normal file
2
webrtc/modules/video_coding/codecs/h264/OWNERS
Normal file
@ -0,0 +1,2 @@
|
||||
hbos@webrtc.org
|
||||
sprang@webrtc.org
|
||||
@ -50,9 +50,10 @@ rtc::CriticalSection ffmpeg_init_lock;
|
||||
bool ffmpeg_initialized = false;
|
||||
|
||||
// Called by FFmpeg to do mutex operations if initialized using
|
||||
// |InitializeFFmpeg|.
|
||||
// |InitializeFFmpeg|. Disabling thread safety analysis because void** does not
|
||||
// play nicely with thread_annotations.h macros.
|
||||
int LockManagerOperation(void** lock, AVLockOp op)
|
||||
EXCLUSIVE_LOCK_FUNCTION() UNLOCK_FUNCTION() {
|
||||
NO_THREAD_SAFETY_ANALYSIS {
|
||||
switch (op) {
|
||||
case AV_LOCK_CREATE:
|
||||
*lock = new rtc::CriticalSection();
|
||||
|
||||
Reference in New Issue
Block a user