Update camera integration test to nonblocking audio clocks
This commit is contained in:
1 parent
902e7bb921
commit
cf2fc67a53
2 files changed
+2
-1
No files matched your search
@@ -201,7 +201,7 @@ if(QT_PACKAGE STREQUAL "Qt6" AND FFMPEG_FOUND)
|
||||
target_sources(test_call_camera_capture PRIVATE src/call_video_engine.cpp)
|
||||
target_compile_definitions(test_call_camera_capture PRIVATE TEST_CALL_VIDEO_ENGINE)
|
||||
target_link_libraries(test_call_camera_capture PRIVATE chatgui_live_video)
|
||||
foreach(symbol call_audio_get_clock call_video_port_open call_video_port_close call_video_port_status
|
||||
foreach(symbol call_audio_get_clock call_audio_try_clock call_video_port_open call_video_port_close call_video_port_status
|
||||
call_video_port_pull call_video_port_request_key call_video_port_decoded)
|
||||
target_link_options(test_call_camera_capture PRIVATE "-Wl,--wrap=${symbol}")
|
||||
endforeach()
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "../../../src/call/call_video_port.h"
|
||||
#include "../../../src/call/call_audio.h"
|
||||
extern "C" int __wrap_call_audio_get_clock(uint64_t, int64_t, call_clock_snapshot* out) { *out = {}; return 0; }
|
||||
extern "C" int __wrap_call_audio_try_clock(uint64_t, int64_t, call_clock_snapshot* out) { *out = {}; return 1; }
|
||||
extern "C" int __wrap_call_video_port_open(uint64_t, const call_video_caps*) { return 0; }
|
||||
extern "C" void __wrap_call_video_port_close(uint64_t) {}
|
||||
extern "C" int __wrap_call_video_port_status(uint64_t, struct call_video_port_status* out) { *out = {}; return 0; }
|
||||
|
||||
Reference in new issue
Block a user