#2581 closed bug (fixed)
Position slider does not match position in the song with MediaPlayer.
| Reported by: | bga | Owned by: | axeld |
|---|---|---|---|
| Priority: | normal | Milestone: | R1/beta2 |
| Component: | Add-Ons | Version: | R1/pre-alpha1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Platform: | All |
Description
When playing this MP3 file:
http://www.bug-br.org.br/virtual-void.mp3
The position slider in MediaPlayer does not match the actual position in the song. In fact, when the music ends, the position slider is at around 1/4 of the bar. The funny thing is that when the music ends, it starts playing again form the start and the position indicator just continues moving.
Change History (7)
comment:1 by , 12 years ago
| Component: | Applications/MediaPlayer → Add-Ons |
|---|---|
| Owner: | changed from to |
comment:2 by , 12 years ago
I just played it to the end using whatever media player is the default one in Ubuntu and it reported an error at the end (no crash, just said "stream error" or something). Still, the time was correct.
comment:4 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
This has been fixed by David. He also went ahead and fixed seeking. Everything woerks perfectly now. Thanks!
comment:5 by , 12 months ago
I would like to reopen this as i see this or a similar bug on x86_64. Either the lider doesn't move, or moves but doesn't really scale to the current position. I see this with videos and music files too.
I even experiences the auto-replay phenomenon too, while the option is disabled in the settings. The slider doesn't goes back to start in this case, so it is 100% the same as the one reported 11 years ago.
comment:6 by , 12 months ago
Some info:
Input #0, mp3, from '/Data/Zene/Tourist/U/02 To Have You Back.mp3':
Metadata:
album : U
genre : UK Garage / Glitch-Hop / Future Bass / Deep House
title : To Have You Back
artist : Tourist
album_artist : Tourist
publisher : Monday Records
track : 2
date : 2016
Duration: 00:04:34.42, start: 0.025056, bitrate: 320 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Metadata:
encoder : LAME3.99r
Stream #0:1: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front)
comment:7 by , 4 days ago
| Milestone: | R1 → R1/beta2 |
|---|
Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone



Looks like the MP3 decoder/reader reports a wrong total duration for this file. It's not really a problem in the MediaPlayer itself. BTW, when you let it play to the "end", it will crash in III_antialias() in the mp3_decoder with a corrupt stack. In any case, we need to be able to play back this particular song in Haiku! :-)