]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_send.c
ogg_afh.c: Store the bitrate in KHz rather than in Hz.
[paraslash.git] / http_send.c
index bbf634100c6de88e95c2e426de5c5a09d4dcfc80..8636d10d2d71e41419cd762328004e194f5ac7cb 100644 (file)
@@ -7,7 +7,9 @@
 /** \file http_send.c paraslash's http sender */
 
 
+#include "para.h"
 #include "server.cmdline.h"
+#include "afh.h"
 #include "server.h"
 #include "http.h"
 #include "vss.h"
@@ -165,11 +167,11 @@ static void http_send( long unsigned current_chunk,
                                hc->status != HTTP_READY_TO_STREAM)
                        continue;
                if (hc->status == HTTP_READY_TO_STREAM) {
-                       unsigned hlen;
+                       size_t hlen;
                        char *hbuf = vss_get_header(&hlen);
                        if (hbuf && hlen > 0 && current_chunk) {
                                /* need to send header */
-                               PARA_INFO_LOG("queueing header: %d\n", hlen);
+                               PARA_INFO_LOG("queueing header: %zu\n", hlen);
                                if (queue_chunk_or_shutdown(hc, -1U, 0) < 0)
                                        continue;
                        } else