Commit 4296ce51 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(codecs): disable downloadable codecs for the moment

parent 23939aaa
...@@ -192,6 +192,10 @@ void AbstractCodecsModel::addDownloadableCodec ( ...@@ -192,6 +192,10 @@ void AbstractCodecsModel::addDownloadableCodec (
} }
QVariantMap AbstractCodecsModel::getCodecInfo (const QString &mime) const { 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) for (const auto &codec : mCodecs)
if (codec.value("mime") == mime) if (codec.value("mime") == mime)
return codec; return codec;
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
* Author: Ronan Abhamon * Author: Ronan Abhamon
*/ */
#include <QDebug>
#include <QDirIterator> #include <QDirIterator>
#include <QLibrary> #include <QLibrary>
...@@ -83,6 +84,10 @@ void VideoCodecsModel::load () { ...@@ -83,6 +84,10 @@ void VideoCodecsModel::load () {
addCodec(codec); addCodec(codec);
// Add downloadable codecs. // 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 defined(Q_OS_LINUX) || defined(Q_OS_WIN)
if (find_if(codecs.begin(), codecs.end(), [](const shared_ptr<linphone::PayloadType> &codec) { if (find_if(codecs.begin(), codecs.end(), [](const shared_ptr<linphone::PayloadType> &codec) {
return codec->getMimeType() == "H264"; return codec->getMimeType() == "H264";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment