cec-config: always set the hdmi port number and device, or v1.4- clients won't work...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 14 Feb 2012 01:04:59 +0000 (02:04 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 14 Feb 2012 01:04:59 +0000 (02:04 +0100)
src/cec-config/cec-config.cpp

index 3fc7af3f656ced928b4d220c8b15950e8c86c031..ceef2d931cc5cac1051c618acc1f381809f31cad 100644 (file)
@@ -446,8 +446,8 @@ int main (int UNUSED(argc), char *UNUSED(argv[]))
     {
       configOutput <<
         "<settings>\n" <<
-          "\t<setting id=\"cec_hdmi_port\" value=\"" << (g_config.iPhysicalAddress == 0 ? g_config.iHDMIPort : 0) << "\" />\n" <<
-          "\t<setting id=\"connected_device\" value=\"" << (g_config.iPhysicalAddress == 0 ? (int)g_config.baseDevice : 0) << "\" />\n" <<
+          "\t<setting id=\"cec_hdmi_port\" value=\"" << g_config.iHDMIPort << "\" />\n" <<
+          "\t<setting id=\"connected_device\" value=\"" << (int)g_config.baseDevice << "\" />\n" <<
           "\t<setting id=\"physical_address\" value=\"" << hex << g_config.iPhysicalAddress << "\" />\n" <<
           "\t<setting id=\"use_tv_menu_language\" value=\"" << (int)g_config.bUseTVMenuLanguage << "\" />\n" <<
           "\t<setting id=\"cec_power_on_startup\" value=\"" << (int)g_config.bPowerOnStartup << "\" />\n" <<