mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-10 01:35:40 +02: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::MEDIA_TYPE] == Details::MEDIA_TYPE_VIDEO) {
|
||||||
if (media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::DISPLAY)
|
if (media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::DISPLAY)
|
||||||
|| media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::FILE)) {
|
|| media[MediaAttributeKey::SOURCE].startsWith(VideoProtocolPrefix::FILE)) {
|
||||||
callInfo["is_sharing"] = true;
|
if (media[MediaAttributeKey::MUTED] == TRUE_STR) {
|
||||||
callInfo["preview_id"] = media[MediaAttributeKey::SOURCE];
|
callInfo["is_sharing"] = false;
|
||||||
|
} else {
|
||||||
|
callInfo["is_sharing"] = true;
|
||||||
|
callInfo["preview_id"] = media[MediaAttributeKey::SOURCE];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (media[MediaAttributeKey::ENABLED] == TRUE_STR
|
if (media[MediaAttributeKey::ENABLED] == TRUE_STR
|
||||||
&& media[MediaAttributeKey::MUTED] == FALSE_STR && previewId.isEmpty()) {
|
&& media[MediaAttributeKey::MUTED] == FALSE_STR && previewId.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue