[cast] Better logging of app not launching

This commit is contained in:
ejurgensen 2020-04-20 21:40:39 +02:00
parent a1cf32172a
commit 886557f946

View File

@ -1090,7 +1090,7 @@ cast_cb_startup_launch(struct cast_session *cs, struct cast_msg_payload *payload
if (payload->type == LAUNCH_ERROR && !cs->retry) if (payload->type == LAUNCH_ERROR && !cs->retry)
{ {
DPRINTF(E_WARN, L_CAST, "Device '%s' does not support app id '%s', trying '%s' instead\n", cs->devname, CAST_APP_ID, CAST_APP_ID_OLD); DPRINTF(E_WARN, L_CAST, "Device '%s' could not launch app id '%s', trying '%s' instead\n", cs->devname, CAST_APP_ID, CAST_APP_ID_OLD);
cs->retry++; cs->retry++;
ret = cast_msg_send(cs, LAUNCH_OLD, cast_cb_startup_launch); ret = cast_msg_send(cs, LAUNCH_OLD, cast_cb_startup_launch);
if (ret < 0) if (ret < 0)
@ -1098,6 +1098,11 @@ cast_cb_startup_launch(struct cast_session *cs, struct cast_msg_payload *payload
return; return;
} }
else if (payload->type == LAUNCH_ERROR)
{
DPRINTF(E_LOG, L_CAST, "Device '%s' could not launch app id '%s' nor '%s' - aborting\n", cs->devname, CAST_APP_ID, CAST_APP_ID_OLD);
goto error;
}
if (payload->type != RECEIVER_STATUS) if (payload->type != RECEIVER_STATUS)
{ {