mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
SoundPlayer: Don't offset the seek bar with the last seek value
The audio loader plugins already do this internally, if we do this a second time the seek bar will just end up getting rendered at the wrong place.
This commit is contained in:
parent
daf181caa8
commit
dfc57c0dd9
3 changed files with 0 additions and 5 deletions
|
@ -38,7 +38,6 @@ void PlaybackManager::stop()
|
|||
{
|
||||
set_paused(true);
|
||||
m_connection->async_clear_buffer();
|
||||
m_last_seek = 0;
|
||||
|
||||
if (m_loader)
|
||||
(void)m_loader->reset();
|
||||
|
@ -59,7 +58,6 @@ void PlaybackManager::seek(int const position)
|
|||
if (!m_loader)
|
||||
return;
|
||||
|
||||
m_last_seek = position;
|
||||
bool paused_state = m_paused;
|
||||
set_paused(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue