Set has_video flag for AppleTV devices

This commit is contained in:
Julien BLACHE 2011-03-05 10:29:05 +01:00
parent f3e7836453
commit db67f4ed6f
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -35,6 +35,8 @@ enum repeat_mode {
struct spk_flags {
unsigned selected:1;
unsigned has_password:1;
unsigned has_video:1;
};
struct player_status {