fixed - only change the type of the client to 'playback device' instead of 'recorder...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 9 Nov 2012 15:39:34 +0000 (16:39 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 9 Nov 2012 15:39:39 +0000 (16:39 +0100)
src/lib/implementations/VLCommandHandler.cpp

index b7cdb7a20b166ab84a1ccca5abe27a3d39335dc4..f57925b80fc87247f959d8fd50474e127dddc088 100644 (file)
@@ -79,10 +79,10 @@ bool CVLCommandHandler::InitHandler(void)
         primary->SetVendorId(CEC_VENDOR_PANASONIC);
         primary->ReplaceHandler(false);
       }
-    }
 
-    if (primary->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE)
-      return m_processor->GetPrimaryClient()->ChangeDeviceType(CEC_DEVICE_TYPE_RECORDING_DEVICE, CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
+      if (primary->GetType() == CEC_DEVICE_TYPE_RECORDING_DEVICE)
+        return m_processor->GetPrimaryClient()->ChangeDeviceType(CEC_DEVICE_TYPE_RECORDING_DEVICE, CEC_DEVICE_TYPE_PLAYBACK_DEVICE);
+    }
   }
 
   return CCECCommandHandler::InitHandler();