Mercurial > mplayer.hg
changeset 33405:d2e61ef877d2
Revert r33448.
Wrong time information in A/V files should be fixed in the files,
not by the GUI.
author | ib |
---|---|
date | Tue, 24 May 2011 13:43:54 +0000 |
parents | 7dfe52e4f2e1 |
children | e63ed663ad49 |
files | gui/mplayer/gui_common.c |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/mplayer/gui_common.c Tue May 24 13:35:26 2011 +0000 +++ b/gui/mplayer/gui_common.c Tue May 24 13:43:54 2011 +0000 @@ -154,8 +154,6 @@ 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 @@ 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 @@ 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;