diff decoders/mpglib.c @ 477:3e705c9180e5

Fixed binary compatibility, added Sound_GetDuration().
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 12 May 2004 02:15:00 +0000
parents c66080364dff
children 006e3d6cd2fe
line wrap: on
line diff
--- a/decoders/mpglib.c	Sat May 08 22:06:14 2004 +0000
+++ b/decoders/mpglib.c	Wed May 12 02:15:00 2004 +0000
@@ -197,8 +197,8 @@
         if (SDL_RWseek(internal->rw, pos, SEEK_SET) != pos) {
             BAIL_MACRO("MPGLIB: Cannot go back to save spot in file.", 0);
 	}
-        sample->total_time = total_byte_size / mpg->mp.fr.bitrate * 8.0;
-        sample->total_time += (total_byte_size % mpg->mp.fr.bitrate) * 8.0
+        internal->total_time = total_byte_size / mpg->mp.fr.bitrate * 8.0;
+        internal->total_time += (total_byte_size % mpg->mp.fr.bitrate) * 8.0
             / mpg->mp.fr.bitrate;
     }