Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
4296ce51
Commit
4296ce51
authored
Mar 23, 2018
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(codecs): disable downloadable codecs for the moment
parent
23939aaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
AbstractCodecsModel.cpp
src/components/codecs/AbstractCodecsModel.cpp
+4
-0
VideoCodecsModel.cpp
src/components/codecs/VideoCodecsModel.cpp
+5
-0
No files found.
src/components/codecs/AbstractCodecsModel.cpp
View file @
4296ce51
...
...
@@ -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
;
...
...
src/components/codecs/VideoCodecsModel.cpp
View file @
4296ce51
...
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment