mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-29 00:33:44 -04:00
fix solaris compile problems... take 2.
This commit is contained in:
parent
0b895d31f9
commit
ae5613a1df
@ -190,6 +190,8 @@ void daap_handler(WS_CONNINFO *pwsc) {
|
|||||||
|
|
||||||
int bytes_copied=0;
|
int bytes_copied=0;
|
||||||
|
|
||||||
|
GZIP_STREAM *gz;
|
||||||
|
|
||||||
close=pwsc->close;
|
close=pwsc->close;
|
||||||
pwsc->close=1; /* in case we have any errors */
|
pwsc->close=1; /* in case we have any errors */
|
||||||
root=NULL;
|
root=NULL;
|
||||||
@ -338,7 +340,7 @@ void daap_handler(WS_CONNINFO *pwsc) {
|
|||||||
start_time = time(NULL);
|
start_time = time(NULL);
|
||||||
if (compress) {
|
if (compress) {
|
||||||
DPRINTF(E_DBG,L_WS|L_DAAP,"Using compression: %s\n", pwsc->uri);
|
DPRINTF(E_DBG,L_WS|L_DAAP,"Using compression: %s\n", pwsc->uri);
|
||||||
GZIP_STREAM *gz = gzip_alloc();
|
gz = gzip_alloc();
|
||||||
daap_serialize(root,pwsc->fd,gz);
|
daap_serialize(root,pwsc->fd,gz);
|
||||||
gzip_compress(gz);
|
gzip_compress(gz);
|
||||||
bytes_written = gz->bytes_out;
|
bytes_written = gz->bytes_out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user