1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-29 03:03:11 +02:00

videomanager: follow API changes

Use return value of registerSinkTarget

Change-Id: Ibc7e8076a9446175d173b10aff18255893b1a8f7
This commit is contained in:
Sébastien Blin 2022-07-14 13:45:23 -04:00 committed by Adrien Béraud
parent f1be2b9f57
commit 4a08775082
2 changed files with 5 additions and 3 deletions

View file

@ -39,7 +39,8 @@ public:
, parent_(parent) , parent_(parent)
{ {
configureTarget(); configureTarget();
VideoManager::instance().registerSinkTarget(parent_->id(), target); if (!VideoManager::instance().registerSinkTarget(parent_->id(), target))
qWarning() << "Cannot register " << parent_->id();
}; };
~Impl() ~Impl()
{ {

View file

@ -141,13 +141,14 @@ public Q_SLOTS: // METHODS
void stopAudioDevice() { DRing::stopAudioDevice(); } void stopAudioDevice() { DRing::stopAudioDevice(); }
void registerSinkTarget(const QString& sinkID, const DRing::SinkTarget& target) bool registerSinkTarget(const QString& sinkID, const DRing::SinkTarget& target)
{ {
#ifdef ENABLE_VIDEO #ifdef ENABLE_VIDEO
DRing::registerSinkTarget(sinkID.toStdString(), target); return DRing::registerSinkTarget(sinkID.toStdString(), target);
#else #else
Q_UNUSED(sinkID) Q_UNUSED(sinkID)
Q_UNUSED(target) Q_UNUSED(target)
return false;
#endif #endif
} }