1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

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
This commit is contained in:
Philipp Schafft 2014-11-29 12:41:19 +00:00
parent de568c4a33
commit 8867d177c5

View File

@ -7,6 +7,7 @@
*
* Copyright 2012, David Richards, Mozilla Foundation,
* and others (see AUTHORS for details).
* Copyright 2014, Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>.
*/
/* format_ebml.c
@ -35,7 +36,6 @@
#include "logging.h"
#define EBML_DEBUG 0
#define EBML_HEADER_MAX_SIZE 131072
#define EBML_SLICE_SIZE 4096
@ -424,11 +424,10 @@ static int ebml_wrote(ebml_t *ebml, int len)
return -1;
}
if (EBML_DEBUG)
{
printf("EBML: Adding to header, ofset is %d size is %d adding %d\n",
/*
ICECAST_LOG_DEBUG("EBML: Adding to header, ofset is %d size is %d adding %d",
ebml->header_size, ebml->header_position, len);
}
*/
memcpy(ebml->header + ebml->header_position, ebml->input_buffer, len);
ebml->header_position += 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 (EBML_DEBUG)
{
printf("EBML: found cluster\n");
}
/*
ICECAST_LOG_DEBUG("EBML: found cluster");
*/
if (ebml->header_size == 0)
{