cleanup ancient cruft; plus a fix in airplay_video.c

This commit is contained in:
F. Duncanh
2025-11-10 19:28:56 -05:00
parent 3139992e1e
commit 1faa49551e
4 changed files with 9 additions and 13 deletions

View File

@@ -226,6 +226,8 @@ language_t* master_playlist_process_language(char * data, int *slices, int *lang
}
if (!strncmp(ptr - strlen("dubbed-auto") - 2, "dubbed-auto", strlen("dubbed-auto"))) {
languages[i].type = 'd';
} else if (!strncmp(ptr - strlen("dubbed") - 2, "dubbed", strlen("dubbed"))) {
languages[i].type = 'd';
} else if (!strncmp(ptr - strlen("original") - 2, "original", strlen("original"))) {
languages[i].type = 'o';
} else {
@@ -271,7 +273,7 @@ language_t* master_playlist_process_language(char * data, int *slices, int *lang
/* verify expected structure of language choice information */
for (int i = 1; i <= count; i++) {
if (i % *language_count) {
assert(languages[i].type == 'd');
assert(languages[i].type != 'o');
} else {
assert(languages[i].type == 'o');
}

View File

@@ -32,13 +32,13 @@
#include "config.h"
#endif
#include "dnssdint.h"
#include "dnssd.h"
#include "global.h"
#include "compat.h"
#include "utils.h"
#include <dns_sd.h>
#include "dnssd.h"
#include "dnssdint.h"
#include "global.h"
#include "utils.h"
#define MAX_DEVICEID 18
#define MAX_SERVNAME 256

View File

@@ -16,9 +16,7 @@
#define DNSSD_H
#include <stdint.h>
#if defined(WIN32) && defined(DLL_EXPORT)
# define DNSSD_API __declspec(dllexport)
#else
#ifndef DNSSD_API
# define DNSSD_API
#endif

View File

@@ -23,11 +23,7 @@
#include "raop_ntp.h"
#include "airplay_video.h"
#if defined (WIN32) && defined(DLL_EXPORT)
# define RAOP_API __declspec(dllexport)
#else
# define RAOP_API
#endif
#ifdef __cplusplus
extern "C" {