repositories
/
deb_shairplay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70e3e17
)
Fix a bug in volume handling.
author
Juho Vähä-Herttua
<juhovh@iki.fi>
Thu, 15 Mar 2012 20:22:52 +0000
(22:22 +0200)
committer
Juho Vähä-Herttua
<juhovh@iki.fi>
Wed, 16 May 2012 21:33:31 +0000
(
00:33
+0300)
src/lib/raop_rtp.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/raop_rtp.c
b/src/lib/raop_rtp.c
index 32873464b1717a211701304daaa6ec149a0ad99b..88f65c602af9820481d9b510d0b29c1a9bdd2dd9 100644
(file)
--- a/
src/lib/raop_rtp.c
+++ b/
src/lib/raop_rtp.c
@@
-179,6
+179,7
@@
raop_rtp_thread_udp(void *arg)
unsigned int packetlen;
struct sockaddr_storage saddr;
socklen_t saddrlen;
unsigned int packetlen;
struct sockaddr_storage saddr;
socklen_t saddrlen;
+ float volume = 0.0;
const ALACSpecificConfig *config;
void *cb_data = NULL;
const ALACSpecificConfig *config;
void *cb_data = NULL;
@@
-193,7
+194,6
@@
raop_rtp_thread_udp(void *arg)
while(1) {
int volume_changed;
while(1) {
int volume_changed;
- float volume = 0.0;
int flush;
fd_set rfds;
int flush;
fd_set rfds;
@@
-308,6
+308,7
@@
raop_rtp_thread_tcp(void *arg)
int stream_fd = -1;
unsigned char packet[RAOP_PACKET_LEN];
unsigned int packetlen = 0;
int stream_fd = -1;
unsigned char packet[RAOP_PACKET_LEN];
unsigned int packetlen = 0;
+ float volume = 0.0;
const ALACSpecificConfig *config;
void *cb_data = NULL;
const ALACSpecificConfig *config;
void *cb_data = NULL;
@@
-322,7
+323,6
@@
raop_rtp_thread_tcp(void *arg)
while (1) {
int volume_changed;
while (1) {
int volume_changed;
- float volume = 0.0;
fd_set rfds;
struct timeval tv;
fd_set rfds;
struct timeval tv;