[vlc-commits] gme: fix warning
Rémi Denis-Courmont
git at videolan.org
Tue Apr 1 22:45:26 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 1 23:43:26 2014 +0300| [f4fafb0a113a7dd49f7da3bb21dd612f910ec56f] | committer: Rémi Denis-Courmont
gme: fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4fafb0a113a7dd49f7da3bb21dd612f910ec56f
---
modules/demux/gme.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/demux/gme.c b/modules/demux/gme.c
index 73e15c0..e50bd4a 100644
--- a/modules/demux/gme.c
+++ b/modules/demux/gme.c
@@ -248,8 +248,12 @@ static int Control (demux_t *demux, int query, va_list args)
|| (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;
}
More information about the vlc-commits
mailing list