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
039ead33
Commit
039ead33
authored
Mar 27, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): little fixes for qml profiler
parent
36e43fe3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
App.cpp
linphone-desktop/src/app/App.cpp
+5
-6
CoreManager.cpp
linphone-desktop/src/components/core/CoreManager.cpp
+9
-7
CoreManager.hpp
linphone-desktop/src/components/core/CoreManager.hpp
+2
-0
No files found.
linphone-desktop/src/app/App.cpp
View file @
039ead33
...
...
@@ -156,12 +156,11 @@ void App::initContentApp () {
// Load splashscreen.
activeSplashScreen
(
this
);
CoreManager
*
core
=
CoreManager
::
getInstance
();
if
(
m_parser
.
isSet
(
"selftest"
))
QObject
::
connect
(
core
,
&
CoreManager
::
linphoneCoreCreated
,
this
,
&
App
::
quit
);
else
QObject
::
connect
(
core
,
&
CoreManager
::
linphoneCoreCreated
,
this
,
&
App
::
openAppAfterInit
);
QObject
::
connect
(
CoreManager
::
getInstance
(),
&
CoreManager
::
linphoneCoreCreated
,
this
,
m_parser
.
isSet
(
"selftest"
)
?
&
App
::
quit
:
&
App
::
openAppAfterInit
);
QObject
::
connect
(
this
,
&
App
::
receivedMessage
,
this
,
[
this
](
int
,
QByteArray
message
)
{
...
...
linphone-desktop/src/components/core/CoreManager.cpp
View file @
039ead33
...
...
@@ -69,13 +69,7 @@ void CoreManager::init (QObject *parent, const QString &config_path) {
QTimer
*
timer
=
m_instance
->
m_cbs_timer
=
new
QTimer
(
m_instance
);
timer
->
setInterval
(
20
);
QObject
::
connect
(
timer
,
&
QTimer
::
timeout
,
m_instance
,
[]()
{
m_instance
->
lockVideoRender
();
m_instance
->
m_core
->
iterate
();
m_instance
->
unlockVideoRender
();
}
);
QObject
::
connect
(
timer
,
&
QTimer
::
timeout
,
m_instance
,
&
CoreManager
::
iterate
);
}
// -----------------------------------------------------------------------------
...
...
@@ -136,3 +130,11 @@ void CoreManager::createLinphoneCore (const QString &config_path) {
setDatabasesPaths
();
setOtherPaths
();
}
// -----------------------------------------------------------------------------
void
CoreManager
::
iterate
()
{
m_instance
->
lockVideoRender
();
m_instance
->
m_core
->
iterate
();
m_instance
->
unlockVideoRender
();
}
linphone-desktop/src/components/core/CoreManager.hpp
View file @
039ead33
...
...
@@ -116,6 +116,8 @@ private:
void
createLinphoneCore
(
const
QString
&
config_path
);
void
iterate
();
std
::
shared_ptr
<
linphone
::
Core
>
m_core
;
std
::
shared_ptr
<
CoreHandlers
>
m_handlers
;
...
...
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