Skip to content

Commit

Permalink
patch webrtc to build with latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Oct 8, 2023
1 parent 9338cde commit 971bb1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_
EXECUTE_PROCESS(WORKING_DIRECTORY ${WEBRTCROOT}/src/third_party/ffmpeg COMMAND chromium/scripts/copy_config.sh)
endif()

#patch
file(READ ${WEBRTCROOT}/src/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc filecontent)
string(REPLACE "config.emplace()" "config.emplace(Config())" filecontent "${filecontent}")
file(WRITE ${WEBRTCROOT}/src/modules/congestion_controller/goog_cc/loss_based_bwe_v2.cc "${filecontent}")

# sound support
if (APPLE)
set (WEBRTCARGS rtc_include_internal_audio_device=true\n${WEBRTCARGS})
Expand Down

0 comments on commit 971bb1c

Please sign in to comment.