feat(codecs): disable downloadable codecs for the moment

This commit is contained in:
Ronan Abhamon 2018-03-23 10:47:19 +01:00
parent 23939aaa2a
commit 4296ce51ed
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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";