fixed - only change the type of the client to 'playback device' instead of 'recorder...
[deb_libcec.git] / 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();