mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-08 21:24:57 -05:00
[outputs] Move device_add/rm to outputs and get rid of advertised flag
This commit is contained in:
@@ -1028,7 +1028,6 @@ alsa_init(void)
|
||||
device->name = strdup(nickname);
|
||||
device->type = OUTPUT_TYPE_ALSA;
|
||||
device->type_name = outputs_name(device->type);
|
||||
device->advertised = 1;
|
||||
device->has_video = 0;
|
||||
|
||||
DPRINTF(E_INFO, L_LAUDIO, "Adding ALSA device '%s' with name '%s'\n", card_name, nickname);
|
||||
|
||||
@@ -1299,8 +1299,6 @@ cast_device_cb(const char *name, const char *type, const char *domain, const cha
|
||||
|
||||
DPRINTF(E_INFO, L_CAST, "Adding Chromecast device '%s'\n", name);
|
||||
|
||||
device->advertised = 1;
|
||||
|
||||
switch (family)
|
||||
{
|
||||
case AF_INET:
|
||||
|
||||
@@ -203,7 +203,6 @@ dummy_init(void)
|
||||
device->name = strdup(nickname);
|
||||
device->type = OUTPUT_TYPE_DUMMY;
|
||||
device->type_name = outputs_name(device->type);
|
||||
device->advertised = 1;
|
||||
device->has_video = 0;
|
||||
|
||||
DPRINTF(E_INFO, L_LAUDIO, "Adding dummy output device '%s'\n", nickname);
|
||||
|
||||
@@ -505,7 +505,6 @@ fifo_init(void)
|
||||
device->name = strdup(nickname);
|
||||
device->type = OUTPUT_TYPE_FIFO;
|
||||
device->type_name = outputs_name(device->type);
|
||||
device->advertised = 1;
|
||||
device->has_video = 0;
|
||||
device->extra_device_info = path;
|
||||
DPRINTF(E_INFO, L_FIFO, "Adding fifo output device '%s' with path '%s'\n", nickname, path);
|
||||
|
||||
@@ -428,7 +428,6 @@ sinklist_cb(pa_context *ctx, const pa_sink_info *info, int eol, void *userdata)
|
||||
device->name = strdup(name);
|
||||
device->type = OUTPUT_TYPE_PULSE;
|
||||
device->type_name = outputs_name(device->type);
|
||||
device->advertised = 1;
|
||||
device->extra_device_info = strdup(info->name);
|
||||
|
||||
player_device_add(device);
|
||||
|
||||
@@ -4712,8 +4712,6 @@ raop_device_cb(const char *name, const char *type, const char *domain, const cha
|
||||
free(et);
|
||||
}
|
||||
|
||||
rd->advertised = 1;
|
||||
|
||||
switch (family)
|
||||
{
|
||||
case AF_INET:
|
||||
|
||||
Reference in New Issue
Block a user