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:
parent
8cfd9bc3fc
commit
a194e86d7a
1 changed files with 6 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue