Skip to content
Snippets Groups Projects
Commit 142f92f1 authored by dos's avatar dos Committed by pippin
Browse files

audio_mp3: Reset pos and count on seek

parent d3f6859e
No related branches found
No related tags found
1 merge request!558Various media improvements
Pipeline #9219 passed
......@@ -158,6 +158,8 @@ static void mp3_think(st3m_media *media, float ms_elapsed) {
float seek = self->control.seek * self->control.duration;
fseek(self->file, seek, SEEK_SET);
self->offset = seek;
self->pos = 0;
self->count = 0;
self->control.time = 0;
self->control.position = self->offset;
self->control.seek = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment