mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
[player/raop] Trigger the SPEAKER event if device verification
succeeded/failed
This commit is contained in:
parent
24782f5d45
commit
1689182432
@ -1773,6 +1773,9 @@ raop_status(struct raop_session *rs)
|
|||||||
rs->status_cb = NULL;
|
rs->status_cb = NULL;
|
||||||
if (status_cb)
|
if (status_cb)
|
||||||
status_cb(rs->device, rs->output_session, state);
|
status_cb(rs->device, rs->output_session, state);
|
||||||
|
|
||||||
|
if (rs->state == RAOP_STATE_UNVERIFIED)
|
||||||
|
player_speaker_status_trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -4160,6 +4163,8 @@ raop_cb_verification_verify_step2(struct evrtsp_request *req, void *arg)
|
|||||||
|
|
||||||
raop_send_req_options(rs, raop_cb_startup_options);
|
raop_send_req_options(rs, raop_cb_startup_options);
|
||||||
|
|
||||||
|
player_speaker_status_trigger();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
@ -2364,6 +2364,15 @@ playback_pause(void *arg, int *retval)
|
|||||||
return COMMAND_END;
|
return COMMAND_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Notify of speaker/device changes (other than activation/deactivation)
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
player_speaker_status_trigger(void)
|
||||||
|
{
|
||||||
|
listener_notify(LISTENER_SPEAKER);
|
||||||
|
}
|
||||||
|
|
||||||
static enum command_state
|
static enum command_state
|
||||||
speaker_enumerate(void *arg, int *retval)
|
speaker_enumerate(void *arg, int *retval)
|
||||||
{
|
{
|
||||||
|
@ -88,6 +88,9 @@ player_speaker_enumerate(spk_enum_cb cb, void *arg);
|
|||||||
int
|
int
|
||||||
player_speaker_set(uint64_t *ids);
|
player_speaker_set(uint64_t *ids);
|
||||||
|
|
||||||
|
void
|
||||||
|
player_speaker_status_trigger(void);
|
||||||
|
|
||||||
int
|
int
|
||||||
player_playback_start(void);
|
player_playback_start(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user