@@ -79,8 +79,10 @@ void DiscoveryDelegateImpl::HandleOnUpdated(matter::casting::memory::Strong<matt
79
79
void InvokeContentLauncherLaunchURL (matter::casting::memory::Strong<matter::casting::core::Endpoint> endpoint)
80
80
{
81
81
// get contentLauncherCluster from the endpoint
82
+ // matter::casting::memory::Strong<matter::casting::clusters::content_launcher::ContentLauncherCluster> contentLauncherCluster =
83
+ // endpoint->GetCluster<matter::casting::clusters::content_launcher::ContentLauncherCluster>(); // SHAO OG
82
84
matter::casting::memory::Strong<matter::casting::clusters::content_launcher::ContentLauncherCluster> contentLauncherCluster =
83
- endpoint-> GetCluster <matter::casting::clusters::content_launcher::ContentLauncherCluster>( );
85
+ static_cast <matter::casting::clusters::content_launcher::ContentLauncherCluster*>(endpoint-> GetCluster () );
84
86
VerifyOrReturn (contentLauncherCluster != nullptr );
85
87
86
88
// get the launchURLCommand from the contentLauncherCluster
@@ -389,7 +391,9 @@ CHIP_ERROR CommandHandler(int argc, char ** argv)
389
391
unsigned long index = static_cast <unsigned long >(strtol (argv[1 ], &eptr, 10 ));
390
392
std::vector<matter::casting::memory::Strong<matter::casting::core::CastingPlayer>> castingPlayers =
391
393
matter::casting::core::CastingPlayerDiscovery::GetInstance ()->GetCastingPlayers ();
392
- VerifyOrReturnValue (0 <= index && index < castingPlayers.size (), CHIP_ERROR_INVALID_ARGUMENT,
394
+ // VerifyOrReturnValue(0 <= index && index < castingPlayers.size(), CHIP_ERROR_INVALID_ARGUMENT,
395
+ // ChipLogError(AppServer, "Invalid casting player index provided: %lu", index)); // SHAO OG
396
+ VerifyOrReturnValue (index < castingPlayers.size (), CHIP_ERROR_INVALID_ARGUMENT,
393
397
ChipLogError (AppServer, " Invalid casting player index provided: %lu" , index ));
394
398
targetCastingPlayer = castingPlayers.at (index );
395
399
0 commit comments