*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
|| (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;
}