diff --git a/src/player.c b/src/player.c index 4a3e7107..09472f94 100644 --- a/src/player.c +++ b/src/player.c @@ -2398,6 +2398,7 @@ speaker_enumerate(struct player_command *cmd) flags.selected = laudio_selected; flags.has_password = 0; + flags.has_video = 0; spk_enum->cb(0, laudio_name, laudio_relvol, flags, spk_enum->arg); @@ -2412,6 +2413,7 @@ speaker_enumerate(struct player_command *cmd) { flags.selected = rd->selected; flags.has_password = rd->has_password; + flags.has_video = (rd->devtype == RAOP_DEV_APPLETV); spk_enum->cb(rd->id, rd->name, rd->relvol, flags, spk_enum->arg); diff --git a/src/player.h b/src/player.h index 1ca327cf..4f2d4b47 100644 --- a/src/player.h +++ b/src/player.h @@ -35,6 +35,8 @@ enum repeat_mode { struct spk_flags { unsigned selected:1; unsigned has_password:1; + + unsigned has_video:1; }; struct player_status {