changeset 32971:dc905c693b7a

Choose informative variable names. That way, a comment on the variable isn't longer necessary.
author ib
date Tue, 08 Mar 2011 19:07:55 +0000
parents 3673c28ce811
children fbaae7fe1a13
files gui/mplayer/play.c gui/mplayer/play.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 
--- 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);