[MPlayer-cvslog] r33493 - trunk/gui/mplayer/gui_common.c

ib subversion at mplayerhq.hu
Tue May 24 15:43:55 CEST 2011


Author: ib
Date: Tue May 24 15:43:54 2011
New Revision: 33493

Log:
Revert r33448.

Wrong time information in A/V files should be fixed in the files,
not by the GUI.

Modified:
   trunk/gui/mplayer/gui_common.c

Modified: trunk/gui/mplayer/gui_common.c
==============================================================================
--- trunk/gui/mplayer/gui_common.c	Tue May 24 15:35:26 2011	(r33492)
+++ trunk/gui/mplayer/gui_common.c	Tue May 24 15:43:54 2011	(r33493)
@@ -154,8 +154,6 @@ static char *Translate(char *str)
             case '1':
                 t = guiIntfStruct.TimeSec;
 calclengthhhmmss:
-                if (t < 0)
-                    t = 0;
                 snprintf(tmp, sizeof(tmp), "%02d:%02d:%02d", t / 3600, t / 60 % 60, t % 60);
                 av_strlcat(trbuf, tmp, sizeof(trbuf));
                 break;
@@ -167,8 +165,6 @@ calclengthhhmmss:
             case '2':
                 t = guiIntfStruct.TimeSec;
 calclengthmmmmss:
-                if (t < 0)
-                    t = 0;
                 snprintf(tmp, sizeof(tmp), "%04d:%02d", t / 60, t % 60);
                 av_strlcat(trbuf, tmp, sizeof(trbuf));
                 break;
@@ -189,10 +185,7 @@ calclengthmmmmss:
                 break;
 
             case '8':
-                t = guiIntfStruct.TimeSec;
-                if (t < 0)
-                    t = 0;
-                snprintf(tmp, sizeof(tmp), "%01d:%02d:%02d", t / 3600, (t / 60) % 60, t % 60);
+                snprintf(tmp, sizeof(tmp), "%01d:%02d:%02d", guiIntfStruct.TimeSec / 3600, (guiIntfStruct.TimeSec / 60) % 60, guiIntfStruct.TimeSec % 60);
                 av_strlcat(trbuf, tmp, sizeof(trbuf));
                 break;
 


More information about the MPlayer-cvslog mailing list