Skip to content

Commit

Permalink
fix build with latest webrtc sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Oct 12, 2024
1 parent e6cf0a8 commit aad9f99
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_
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}")

file(READ ${WEBRTCROOT}/src/media/engine/webrtc_video_engine.cc filecontent)
string(REPLACE "stream_config.rtx.emplace()" "stream_config.rtx.emplace(webrtc::RtpStreamConfig::Rtx())" filecontent "${filecontent}")
file(WRITE ${WEBRTCROOT}/src/media/engine/webrtc_video_engine.cc "${filecontent}")
file(READ ${WEBRTCROOT}/src/rtc_base/ssl_stream_adapter.h filecontent)
string(REPLACE "#include <vector>" "#include <vector>\n#include <optional>" filecontent "${filecontent}")
file(WRITE ${WEBRTCROOT}/src/rtc_base/ssl_stream_adapter.h "${filecontent}")


# sound support
Expand Down

0 comments on commit aad9f99

Please sign in to comment.