Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Sep 27, 2023
1 parent 84fa584 commit 4062514
Show file tree
Hide file tree
Showing 35 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.2.1
- (airupnp) unified source with spotconnect
- (aircast) revert exclusion of devices based on netmask
- display iface and network at start
- update XML_UpdateNode bug

Expand Down
11 changes: 9 additions & 2 deletions aircast/src/aircast.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,14 @@ static void UpdateDevices() {
pthread_mutex_unlock(&glMainMutex);
}

/*----------------------------------------------------------------------------*/
static bool isMember(struct in_addr host) {
for (int i = 0; i < MAX_RENDERERS; i++) {
if (glMRDevices[i].Running && CastGetAddr(glMRDevices[i].CastCtx).s_addr == host.s_addr) return true;
}
return false;
}

/*----------------------------------------------------------------------------*/
static bool mDNSsearchCallback(mdnssd_service_t *slist, void *cookie, bool *stop) {
struct sMR *Device;
Expand Down Expand Up @@ -428,8 +436,7 @@ static bool mDNSsearchCallback(mdnssd_service_t *slist, void *cookie, bool *stop
bool Group;

// is the mDNS record usable or announce made on behalf
if ((UDN = GetmDNSAttribute(s->attr, s->attr_count, "id")) == NULL ||
(s->host.s_addr != s->addr.s_addr && (s->host.s_addr & glNetmask) == (s->addr.s_addr & glNetmask))) continue;
if ((UDN = GetmDNSAttribute(s->attr, s->attr_count, "id")) == NULL || (s->host.s_addr != s->addr.s_addr && isMember(s->host))) continue;

// is that device already here
if ((Device = SearchUDN(UDN)) != NULL) {
Expand Down
2 changes: 1 addition & 1 deletion aircast/src/castcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void CastQueueFlush(cross_queue_t *Queue) {
}

/*----------------------------------------------------------------------------*/
void ProcessQueue(tCastCtx *Ctx) {
static void ProcessQueue(tCastCtx *Ctx) {
tReqItem *item;

if ((item = queue_extract(&Ctx->reqQueue)) == NULL) return;
Expand Down
Binary file modified bin/aircast-freebsd-x86_64
Binary file not shown.
Binary file modified bin/aircast-freebsd-x86_64-static
Binary file not shown.
Binary file modified bin/aircast-linux-aarch64
Binary file not shown.
Binary file modified bin/aircast-linux-aarch64-static
Binary file not shown.
Binary file modified bin/aircast-linux-arm
Binary file not shown.
Binary file modified bin/aircast-linux-arm-static
Binary file not shown.
Binary file modified bin/aircast-linux-armv5
Binary file not shown.
Binary file modified bin/aircast-linux-armv5-static
Binary file not shown.
Binary file modified bin/aircast-linux-armv6
Binary file not shown.
Binary file modified bin/aircast-linux-armv6-static
Binary file not shown.
Binary file modified bin/aircast-linux-mips
Binary file not shown.
Binary file modified bin/aircast-linux-mips-static
Binary file not shown.
Binary file modified bin/aircast-linux-mipsel
Binary file not shown.
Binary file modified bin/aircast-linux-mipsel-static
Binary file not shown.
Binary file modified bin/aircast-linux-powerpc
Binary file not shown.
Binary file modified bin/aircast-linux-powerpc-static
Binary file not shown.
Binary file modified bin/aircast-linux-sparc64
Binary file not shown.
Binary file modified bin/aircast-linux-sparc64-static
Binary file not shown.
Binary file modified bin/aircast-linux-x86
Binary file not shown.
Binary file modified bin/aircast-linux-x86-static
Binary file not shown.
Binary file modified bin/aircast-linux-x86_64
Binary file not shown.
Binary file modified bin/aircast-linux-x86_64-static
Binary file not shown.
Binary file modified bin/aircast-macos
Binary file not shown.
Binary file modified bin/aircast-macos-arm64
Binary file not shown.
Binary file modified bin/aircast-macos-arm64-static
Binary file not shown.
Binary file modified bin/aircast-macos-static
Binary file not shown.
Binary file modified bin/aircast-macos-x86_64
Binary file not shown.
Binary file modified bin/aircast-macos-x86_64-static
Binary file not shown.
Binary file modified bin/aircast-solaris-x86_64
Binary file not shown.
Binary file modified bin/aircast-solaris-x86_64-static
Binary file not shown.
Binary file modified bin/aircast-static.exe
Binary file not shown.
Binary file modified bin/aircast.exe
Binary file not shown.

0 comments on commit 4062514

Please sign in to comment.