Fix erroneous thread affinity log message.
authorCarl Hetherington <cth@carlh.net>
Mon, 9 May 2016 15:09:06 +0000 (16:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 9 May 2016 15:09:06 +0000 (16:09 +0100)
src/lib/encoder.cc

index 34cae7d768c6ad229ecfd14c2b253d5fdd37904d..fdccaddd923a2a6a1ab9ce1a43fe162ca4c1791b 100644 (file)
@@ -386,7 +386,9 @@ Encoder::servers_list_changed ()
        info.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
        GetVersionEx (&info);
        bool const windows_xp = (info.dwMajorVersion == 5 && info.dwMinorVersion == 1);
-       LOG_GENERAL_NC (N_("Setting thread affinity for Windows XP"));
+       if (windows_xp) {
+               LOG_GENERAL_NC (N_("Setting thread affinity for Windows XP"));
+       }
 #endif
 
        if (!Config::instance()->only_servers_encode ()) {