[MPlayer-cvslog] r37008 - trunk/gui/win32/widgetrender.c
ib
subversion at mplayerhq.hu
Thu Mar 13 15:57:17 CET 2014
Author: ib
Date: Thu Mar 13 15:57:17 2014
New Revision: 37008
Log:
Fix symbol character for dynamic label variable $T in Win32 GUI.
Only STREAMTYPE_STREAM is 'u', the default is ' '.
Additionally, use the symbolic constant STREAMTYPE_FILE not its value 0.
Modified:
trunk/gui/win32/widgetrender.c
Modified: trunk/gui/win32/widgetrender.c
==============================================================================
--- trunk/gui/win32/widgetrender.c Thu Mar 13 15:13:15 2014 (r37007)
+++ trunk/gui/win32/widgetrender.c Thu Mar 13 15:57:17 2014 (r37008)
@@ -161,11 +161,13 @@ static char *generatetextfromlabel(widge
else if(guiInfo.AudioChannels == 2) stringreplace(text, "$a", "t");
else stringreplace(text, "$a", "r");
- if(guiInfo.StreamType == 0)
+ if(guiInfo.StreamType == STREAMTYPE_FILE)
stringreplace(text, "$T", "f");
else if(guiInfo.StreamType == STREAMTYPE_DVD || guiInfo.StreamType == STREAMTYPE_DVDNAV)
stringreplace(text, "$T", "d");
- else stringreplace(text, "$T", "u");
+ else if(guiInfo.StreamType == STREAMTYPE_STREAM)
+ stringreplace(text, "$T", "u");
+ else stringreplace(text, "$T", " ");
stringreplace(text, "$f", acp(TranslateFilename(1, tmp, sizeof(tmp))));
stringreplace(text, "$F", acp(TranslateFilename(2, tmp, sizeof(tmp))));
More information about the MPlayer-cvslog
mailing list