[MPlayer-cvslog] r33058 - in trunk/gui/mplayer: play.c play.h
ib
subversion at mplayerhq.hu
Tue Mar 8 20:07:55 CET 2011
Author: ib
Date: Tue Mar 8 20:07:55 2011
New Revision: 33058
Log:
Choose informative variable names.
That way, a comment on the variable isn't longer necessary.
Modified:
trunk/gui/mplayer/play.c
trunk/gui/mplayer/play.h
Modified: trunk/gui/mplayer/play.c
==============================================================================
--- trunk/gui/mplayer/play.c Tue Mar 8 19:53:54 2011 (r33057)
+++ trunk/gui/mplayer/play.c Tue Mar 8 20:07:55 2011 (r33058)
@@ -179,18 +179,18 @@ void mplState(void)
}
}
-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;
}
Modified: trunk/gui/mplayer/play.h
==============================================================================
--- trunk/gui/mplayer/play.h Tue Mar 8 19:53:54 2011 (r33057)
+++ trunk/gui/mplayer/play.h Tue Mar 8 20:07:55 2011 (r33058)
@@ -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 mplNext(void);
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);
More information about the MPlayer-cvslog
mailing list