mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
fix type error
This commit is contained in:
parent
74719c24f5
commit
67858c6e46
1 changed files with 8 additions and 4 deletions
|
|
@ -170,7 +170,7 @@ int pa__init(pa_module*m) {
|
||||||
pa_modargs *ma = NULL;
|
pa_modargs *ma = NULL;
|
||||||
const char *dest;
|
const char *dest;
|
||||||
uint32_t port = DEFAULT_PORT, mtu;
|
uint32_t port = DEFAULT_PORT, mtu;
|
||||||
unsigned char ttl = DEFAULT_TTL;
|
uint32_t ttl = DEFAULT_TTL;
|
||||||
int af, fd = -1, sap_fd = -1;
|
int af, fd = -1, sap_fd = -1;
|
||||||
pa_source *s;
|
pa_source *s;
|
||||||
pa_sample_spec ss;
|
pa_sample_spec ss;
|
||||||
|
|
@ -288,10 +288,14 @@ int pa__init(pa_module*m) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ttl != DEFAULT_TTL && setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) {
|
if (ttl != DEFAULT_TTL) {
|
||||||
|
int _ttl = (int) ttl;
|
||||||
|
|
||||||
|
if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &_ttl, sizeof(_ttl)) < 0) {
|
||||||
pa_log("IP_MULTICAST_TTL failed: %s", pa_cstrerror(errno));
|
pa_log("IP_MULTICAST_TTL failed: %s", pa_cstrerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If the socket queue is full, let's drop packets */
|
/* If the socket queue is full, let's drop packets */
|
||||||
pa_make_fd_nonblock(fd);
|
pa_make_fd_nonblock(fd);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue