1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2024-10-28 08:49:35 +01:00

screenshare: fix bug on certain wayland systems

Fixed logic error which was causing screen sharing to stop working on certain Wayland environments.

GitLab: #1676

Change-Id: Idf3beb97a53d2eb88e082cee710be56c90c6df05
This commit is contained in:
Andreas 2024-09-19 15:36:24 -04:00 committed by François-Simon Fauteux-Chapleau
parent 8cfd9bc3fc
commit a194e86d7a

View file

@ -168,8 +168,12 @@ struct Info
if (media[MediaAttributeKey::MEDIA_TYPE] == Details::MEDIA_TYPE_VIDEO) {
if (media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::DISPLAY)
|| media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::FILE)) {
callInfo["is_sharing"] = true;
callInfo["preview_id"] = media[MediaAttributeKey::SOURCE];
if (media[MediaAttributeKey::MUTED] == TRUE_STR) {
callInfo["is_sharing"] = false;
} else {
callInfo["is_sharing"] = true;
callInfo["preview_id"] = media[MediaAttributeKey::SOURCE];
}
}
if (media[MediaAttributeKey::ENABLED] == TRUE_STR
&& media[MediaAttributeKey::MUTED] == FALSE_STR && previewId.isEmpty()) {