mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
Set has_video flag for AppleTV devices
This commit is contained in:
parent
f3e7836453
commit
db67f4ed6f
@ -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);
|
||||
|
||||
|
@ -35,6 +35,8 @@ enum repeat_mode {
|
||||
struct spk_flags {
|
||||
unsigned selected:1;
|
||||
unsigned has_password:1;
|
||||
|
||||
unsigned has_video:1;
|
||||
};
|
||||
|
||||
struct player_status {
|
||||
|
Loading…
Reference in New Issue
Block a user