Restore previous behavior: seeking should not pause playback

BUG: 351942
parent b0d910af
......@@ -163,7 +163,6 @@ void Render::seek(int time)
resetZoneMode();
if (requestedSeekPosition == SEEK_INACTIVE) {
requestedSeekPosition = time;
m_mltProducer->set_speed(0);
m_mltProducer->seek(time);
m_mltConsumer->purge();
if (!externalConsumer) {
......@@ -1695,12 +1694,13 @@ void Render::checkFrameNumber(int pos)
requestedSeekPosition = SEEK_INACTIVE;
}
if (requestedSeekPosition != SEEK_INACTIVE) {
double speed = m_mltProducer->get_speed();
m_mltProducer->set_speed(0);
m_mltProducer->seek(requestedSeekPosition);
m_mltConsumer->purge();
if (m_mltProducer->get_speed() == 0) {
if (speed == 0) {
m_mltConsumer->set("refresh", 1);
}
else m_mltProducer->set_speed(speed);
}
}
......
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