Re-enable audio playback on reverse speed

Fixes #887
parent 396af5cc
Pipeline #48356 passed with stage
in 11 minutes and 3 seconds
...@@ -1608,7 +1608,7 @@ void GLWidget::switchPlay(bool play, double speed) ...@@ -1608,7 +1608,7 @@ void GLWidget::switchPlay(bool play, double speed)
} }
double current_speed = m_producer->get_speed(); double current_speed = m_producer->get_speed();
m_producer->set_speed(speed); m_producer->set_speed(speed);
if (speed <= 1. || speed > 6.) { if (qFuzzyCompare(speed, 1.0) || speed < -6. || speed > 6.) {
m_consumer->set("scrub_audio", 0); m_consumer->set("scrub_audio", 0);
} else { } else {
m_consumer->set("scrub_audio", 1); m_consumer->set("scrub_audio", 1);
......
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