mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 05:23:06 +00:00
feat(codecs): disable downloadable codecs for the moment
This commit is contained in:
parent
23939aaa2a
commit
4296ce51ed
2 changed files with 9 additions and 0 deletions
|
|
@ -192,6 +192,10 @@ void AbstractCodecsModel::addDownloadableCodec (
|
|||
}
|
||||
|
||||
QVariantMap AbstractCodecsModel::getCodecInfo (const QString &mime) const {
|
||||
// TODO: Remove me in 4.2 release.
|
||||
qDebug() << "Enable me in 4.2 release.";
|
||||
return QVariantMap();
|
||||
|
||||
for (const auto &codec : mCodecs)
|
||||
if (codec.value("mime") == mime)
|
||||
return codec;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
* Author: Ronan Abhamon
|
||||
*/
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDirIterator>
|
||||
#include <QLibrary>
|
||||
|
||||
|
|
@ -83,6 +84,10 @@ void VideoCodecsModel::load () {
|
|||
addCodec(codec);
|
||||
|
||||
// Add downloadable codecs.
|
||||
// TODO: Remove me in 4.2 release.
|
||||
qDebug() << "Enable downloadable codecs in 4.2 release.";
|
||||
return;
|
||||
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
|
||||
if (find_if(codecs.begin(), codecs.end(), [](const shared_ptr<linphone::PayloadType> &codec) {
|
||||
return codec->getMimeType() == "H264";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue