changeset 36912:c20f0c6d19f1

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.
author ib
date Thu, 13 Mar 2014 14:57:17 +0000
parents 7fea799f350c
children 9d89aa330d63
files gui/win32/widgetrender.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/widgetrender.c	Thu Mar 13 14:13:15 2014 +0000
+++ b/gui/win32/widgetrender.c	Thu Mar 13 14:57:17 2014 +0000
@@ -161,11 +161,13 @@
     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))));