[MPlayer-cvslog] r33048 - trunk/gui/mplayer/play.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Mar 8 17:51:09 CET 2011


On 8 Mar 2011, at 12:08, ib <subversion at mplayerhq.hu> wrote:
> Author: ib
> Date: Tue Mar  8 12:08:28 2011
> New Revision: 33048
> 
> Log:
> Make constants explicitly type float.
> 
> Modified:
>   trunk/gui/mplayer/play.c
> 
> Modified: trunk/gui/mplayer/play.c
> ==============================================================================
> --- trunk/gui/mplayer/play.c    Tue Mar  8 12:06:27 2011    (r33047)
> +++ trunk/gui/mplayer/play.c    Tue Mar  8 12:08:28 2011    (r33048)
> @@ -190,7 +190,7 @@ void mplAbsSeek(float s)
>     if (guiIntfStruct.StreamType == STREAMTYPE_STREAM)
>         return;
> 
> -    rel_seek_secs = 0.01 * s;   // 0.0..100.0
> +    rel_seek_secs = 0.01f * s;   // 0.0..100.0
>     abs_seek_pos  = 3;
> }

Why? Unless performance or memory usage is an issue using double like before is a much better idea, float has only 24 bits of precision.


More information about the MPlayer-cvslog mailing list