libjami: respect LIBJAMI_FLAG_NO_LOCAL_VIDEO

Change-Id: I92eb18404ca9872a3dad3ecbae5e5ab6439a07ad
This commit is contained in:
Adrien Béraud
2023-04-14 00:13:55 -04:00
committed by Adrien Beraud
parent 41384122a8
commit 0757c2cf70
9 changed files with 178 additions and 101 deletions

View File

@ -538,7 +538,8 @@ ConferenceTest::testCreateParticipantsSinks()
CPPUNIT_ASSERT(
cv.wait_for(lk, 30s, [&] { return pInfos_.size() == expectedNumberOfParticipants; }));
if (not jami::getVideoDeviceMonitor().getDeviceList().empty()) {
auto dm = jami::getVideoDeviceMonitor();
if (dm && dm->getDeviceList().empty()) {
JAMI_INFO() << "Check sinks if video device available.";
std::lock_guard lock(pInfosMtx_);
for (auto& info : pInfos_) {