# HG changeset patch # User ib # Date 1299611275 0 # Node ID dc905c693b7a836aeb93a9711a382c96c804e24b # Parent 3673c28ce81121a6d7a8d0c6e0e1a71bbba8c7a6 Choose informative variable names. That way, a comment on the variable isn't longer necessary. diff -r 3673c28ce811 -r dc905c693b7a gui/mplayer/play.c --- a/gui/mplayer/play.c Tue Mar 08 18:53:54 2011 +0000 +++ b/gui/mplayer/play.c Tue Mar 08 19:07:55 2011 +0000 @@ -179,18 +179,18 @@ } } -void mplRelSeek(float s) +void mplRelSeek(float sec) { - rel_seek_secs = s; // -+s + rel_seek_secs = sec; abs_seek_pos = 0; } -void mplAbsSeek(float s) +void mplAbsSeek(float percent) { if (guiIntfStruct.StreamType == STREAMTYPE_STREAM) return; - rel_seek_secs = s / 100.0; // 0.0..100.0 + rel_seek_secs = percent / 100.0; abs_seek_pos = 3; } diff -r 3673c28ce811 -r dc905c693b7a gui/mplayer/play.h --- a/gui/mplayer/play.h Tue Mar 08 18:53:54 2011 +0000 +++ b/gui/mplayer/play.h Tue Mar 08 19:07:55 2011 +0000 @@ -22,7 +22,7 @@ extern int mplGotoTheNext; void ChangeSkin(char *name); -void mplAbsSeek(float s); +void mplAbsSeek(float sec); void mplCurr(void); void mplEnd(void); void mplFullScreen(void); @@ -30,7 +30,7 @@ void mplPause(void); void mplPlay(void); void mplPrev(void); -void mplRelSeek(float s); +void mplRelSeek(float percent); void mplSetFileName(char *dir, char *name, int type); void mplState(void);