Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
01a4bd3a
Commit
01a4bd3a
authored
Dec 03, 2019
by
Jean-Baptiste Mardelle
Browse files
Don't emit audio when simply refreshing monitor.
Related to
#467
parent
4b9dd5b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/glwidget.cpp
View file @
01a4bd3a
...
...
@@ -646,6 +646,7 @@ void GLWidget::wheelEvent(QWheelEvent *event)
void
GLWidget
::
requestSeek
(
int
position
)
{
m_consumer
->
set
(
"scrub_audio"
,
1
);
m_producer
->
seek
(
position
);
if
(
!
qFuzzyIsNull
(
m_producer
->
get_speed
()))
{
m_consumer
->
purge
();
...
...
@@ -659,6 +660,7 @@ void GLWidget::requestSeek(int position)
void
GLWidget
::
requestRefresh
()
{
if
(
m_producer
&&
qFuzzyIsNull
(
m_producer
->
get_speed
()))
{
m_consumer
->
set
(
"scrub_audio"
,
0
);
m_refreshTimer
.
start
();
}
}
...
...
@@ -1616,6 +1618,7 @@ void GLWidget::switchPlay(bool play, double speed)
}
m_producer
->
set_speed
(
speed
);
m_consumer
->
start
();
m_consumer
->
set
(
"scrub_audio"
,
0
);
m_consumer
->
set
(
"refresh"
,
1
);
}
else
{
emit
paused
();
...
...
@@ -1640,6 +1643,7 @@ bool GLWidget::playZone(bool loop)
if
(
m_consumer
->
is_stopped
())
{
m_consumer
->
start
();
}
m_consumer
->
set
(
"scrub_audio"
,
0
);
m_consumer
->
set
(
"refresh"
,
1
);
m_isZoneMode
=
true
;
m_isLoopMode
=
loop
;
...
...
@@ -1660,6 +1664,7 @@ bool GLWidget::loopClip()
if
(
m_consumer
->
is_stopped
())
{
m_consumer
->
start
();
}
m_consumer
->
set
(
"scrub_audio"
,
0
);
m_consumer
->
set
(
"refresh"
,
1
);
m_isZoneMode
=
true
;
m_isLoopMode
=
true
;
...
...
Write
Preview
Supports
Markdown
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