|| (sys->titlev[sys->track_id]->i_length == 0))
*pos = 0.;
else
- *pos = (double)(gme_tell (sys->emu))
+ {
+ int offset = gme_tell (sys->emu);
+
+ *pos = (double)offset
/ (double)(sys->titlev[sys->track_id]->i_length / 1000);
+ }
return VLC_SUCCESS;
}