Commit 8867d177 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

cleanup: converted printf() into ICECAST_LOG_DEBUG() but commented out so they...

cleanup: converted printf() into ICECAST_LOG_DEBUG() but commented out so they do not spam logs for normal users.

svn path=/icecast/trunk/icecast/; revision=19368
parent de568c4a
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* *
* Copyright 2012, David Richards, Mozilla Foundation, * Copyright 2012, David Richards, Mozilla Foundation,
* and others (see AUTHORS for details). * and others (see AUTHORS for details).
* Copyright 2014, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>.
*/ */
/* format_ebml.c /* format_ebml.c
...@@ -35,7 +36,6 @@ ...@@ -35,7 +36,6 @@
#include "logging.h" #include "logging.h"
#define EBML_DEBUG 0
#define EBML_HEADER_MAX_SIZE 131072 #define EBML_HEADER_MAX_SIZE 131072
#define EBML_SLICE_SIZE 4096 #define EBML_SLICE_SIZE 4096
...@@ -423,12 +423,11 @@ static int ebml_wrote(ebml_t *ebml, int len) ...@@ -423,12 +423,11 @@ static int ebml_wrote(ebml_t *ebml, int len)
ICECAST_LOG_ERROR("EBML Header too large, failing"); ICECAST_LOG_ERROR("EBML Header too large, failing");
return -1; return -1;
} }
if (EBML_DEBUG) /*
{ ICECAST_LOG_DEBUG("EBML: Adding to header, ofset is %d size is %d adding %d",
printf("EBML: Adding to header, ofset is %d size is %d adding %d\n", ebml->header_size, ebml->header_position, len);
ebml->header_size, ebml->header_position, len); */
}
memcpy(ebml->header + ebml->header_position, ebml->input_buffer, len); memcpy(ebml->header + ebml->header_position, ebml->input_buffer, len);
ebml->header_position += len; ebml->header_position += len;
...@@ -442,10 +441,9 @@ static int ebml_wrote(ebml_t *ebml, int len) ...@@ -442,10 +441,9 @@ static int ebml_wrote(ebml_t *ebml, int len)
{ {
if (!memcmp(ebml->input_buffer + b, ebml->cluster_id, 4)) if (!memcmp(ebml->input_buffer + b, ebml->cluster_id, 4))
{ {
if (EBML_DEBUG) /*
{ ICECAST_LOG_DEBUG("EBML: found cluster");
printf("EBML: found cluster\n"); */
}
if (ebml->header_size == 0) if (ebml->header_size == 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment