From db67f4ed6fd1e36345f9acb127cec1017b836d34 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 5 Mar 2011 10:29:05 +0100 Subject: [PATCH] Set has_video flag for AppleTV devices --- src/player.c | 2 ++ src/player.h | 2 ++ 2 files changed, 4 insertions(+) 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 {