1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-25 09:55:31 +02:00
Commit graph

16 commits

Author SHA1 Message Date
Andreas Traczyk
02d25db786 video: shm: replace fixed timer with waiting on producer
Removes the fixed rate QTimer that was used to query shm frames, and waits on the producer in a thread loop.

Also factors FPS value tracking into the Renderer base class.

Gitlab: #938
Change-Id: Icf44c8399d70c4127c512802b6cf6c6dccdccfd6
2023-05-11 11:48:51 -04:00
Sébastien Blin
1d41dd427d avmodel: update renderer on queued thread
This avoid a double lock on SHM renderer and there is no need
for direct connection there.

Change-Id: I9cd4c862bbefd26ab01b3a685551ea95fad2c41e
2023-02-06 14:11:57 -05:00
Nicolas Vengeon
08cb68366f avmodel.cpp: Segmentation fault error: mutex missing
Change-Id: Id0994bf32dccbc35422d8b96deeaeebebf8d61bc
2023-02-06 09:13:45 -05:00
Amin Bandali
8d46acedf1 misc: Update copyright years to 2023
Change-Id: Idf38e82631a4e22540aa5dec8ec2db0ab4a38c2e
2023-02-06 01:47:15 -05:00
Aline Gondim Santos
b16131e63a windows sharing: use windows id instead of name
Change-Id: Ie1708ae4be049206fb8337db1211b7844e45726f
2023-02-01 11:28:40 -05:00
Aline Gondim Santos
e1d85b2db0 window sharing: track window name change
If a window changes its name, we should share the parent process windows.
This can happen with chrome, visual studio code and file explorer for example.

+ Fixes non opening SelectScreen window when Jami language changes.

Change-Id: Ib16992dde08e6a9fa191c9fb1cbc4efd304efe6d
2023-01-18 17:19:00 -05:00
Nicolas Vengeon
c977c732f2 feature: improve advanced call information overlay
GitLab: #925

Change-Id: Id75b14bf431ac421b135beb75918dbf37a81d53c
2023-01-10 09:38:31 -05:00
Aline Gondim Santos
a28d5c5c55 windows: enable window sharing
GitLab: https://git.jami.net/savoirfairelinux/jami-project/-/issues/1294
GitLab: #481
Change-Id: Iafdb542d37f9a1d59b35d83ba779c1c2f2f0ca0f
2023-01-09 12:37:28 -03:00
Nicolas Vengeon
7e9dce9c00 feature: Add 'advanced information' call overlay
Change-Id: Ia54d01ec56e01d0c04e360ec06da87aa37fe74fe
GitLab: #510
2022-11-02 09:31:02 -04:00
Sébastien Blin
90ae50ee5f misc: rename DRing->libjami
Change-Id: I15d382406687cc506c1456ce43286ad6b0f23529
2022-10-29 16:53:42 -04:00
Andreas Traczyk
15e133301e avmodel: use synchronous callbacks for DecodingStarted/Stopped
This is an older issue that has resurfaced where mobile device rotation
at the beginning of a call cause a frame-copy to a stale buffer because
the DecodingStarted event is handled asynchronously.

Noticed on Windows but I believe any non-dbus build should have it.

So we make all the connections blocking and adjust some parameters.
This commit also removes the DecodingStarted handler in CallModel which
was causing the client's target video frame to be reallocated for each
account present.

Change-Id: I23ac4e0bd4b446e7a532f0d362f7ecd209d3c790
GitLab: #536
2022-09-29 11:45:09 -04:00
Sébastien Blin
b58bb644e8 avmodel: check index
Change-Id: Ic51fda2e43e27fad851ab33d6e091124c645011b
2022-08-24 21:07:03 -04:00
Sébastien Blin
5995d9b5d1
avmodel: use ringtone index and cleanup
Change-Id: If1f76e4c33bfb067769b6d2d81871e156d256aaf
2022-08-24 14:08:51 -04:00
Sébastien Blin
5f79a9f280 renderers: do not crash on update and simplify code
No need to add complex mechanisms for nearly no-ops, the previous
method were bugguy and caused weird crashes. Just re-create the
renderer correctly.

Change-Id: I88738244c7cbaa6f189799c6a28dc9244953667d
2022-06-14 09:03:51 -04:00
Sébastien Blin
fc0ad97bc5 avmodel: avoid heap-buffer-overflow
use finished string to avoid a heap-buffer-overflow due to non
terminated string

Change-Id: Ic7d7fd45522e199977be9213359888b630d86543
2022-06-10 10:50:19 -04:00
Amin Bandali
e0b3b4adec misc: vendor libjamiclient into 'src/libclient/'
This is libjamiclient from the jami-libclient.git repository as of
767c45b8b09806ac05cbada720864df93588c047, with the following changes:

* src/libclient/newaccountmodel.cpp:
(NewAccountModelPimpl::removeFromAccounts): The lock wait inside
'#ifdef CHK_FREEABLE_BEFORE_ERASE_ACCOUNT' was not updated when the
type of 'accounts' was changed over the years from this:
std::map<std::string, account::Info>
to this:
std::map<QString, std::pair<account::Info, std::shared_ptr<Database>>>
Basically we need to get the 'first' of the pair for 'account::Info'.
So we now do that.

* src/libclient/avmodel.cpp:
* src/libclient/callbackshandler.cpp:
* src/libclient/contactmodel.cpp:
* src/libclient/conversationmodel.cpp:
* src/libclient/database.cpp:
* src/libclient/namedirectory.cpp:
* src/libclient/newaccountmodel.cpp:
* src/libclient/newcallmodel.cpp:
* src/libclient/newdevicemodel.cpp:
* src/libclient/peerdiscoverymodel.cpp:
* src/libclient/pluginmodel.cpp:
* src/libclient/smartinfohub.cpp:
* src/libclient/vcard.h:
* src/libclient/authority/storagehelper.cpp:  Replace Qt's 'foreach'
with 'Q_FOREACH' and its 'emit' with 'Q_EMIT' because in the client-qt
code base we have '-DQT_NO_KEYWORDS' to avoid conflicts with other
libraries we use.

* cmake/FindLibJami.cmake: Import cmake/FindRing.cmake from the
jami-libclient.git repository.  Then, rename RING_BUILD_DIR to
LIBJAMI_BUILD_DIR (though the old name is still supported for now).
Also update other references of Ring to Jami.  Further, add additional
calls to 'find_library' to make sure specified local paths for libjami
are checked before system-wide ones (in case of older/obsolete libjami
being available system-wide, which might happen on GNU/Linux systems).

* translations/lrc_*.ts: Import translation files from the libclient
repository.  The message location paths were corrected by running
"sed -i 's|../src|&/libclient|g' lrc_*.ts" in 'translations/'.

.tx/config: Add section for the newly-imported libclient translations.

* CMakeLists.txt: Reformat, plus various fixes and cleanups, such as
changing indentation to 2 spaces and wrapping lines at 70 characters,
renaming the parent directory of translations from 'ring' to 'jami',
and using all lowercase function calls.  Also add copyright headers.

* src/app/appsettingsmanager.cpp:
(AppSettingsManager::loadTranslations):
* src/app/utilsadapter.cpp (UtilsAdapter::supportedLang): Update to
adapt to the renaming of the parent directory of translations from
'ring' to 'jami'.

GitLab: #748
Change-Id: I86e3b0fb30e554755023e7b858b6a0d132cd59ab
2022-06-08 16:28:57 -04:00