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

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 @@
*
* 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
......@@ -423,12 +423,11 @@ static int ebml_wrote(ebml_t *ebml, int len)
ICECAST_LOG_ERROR("EBML Header too large, failing");
return -1;
}
if (EBML_DEBUG)
{
printf("EBML: Adding to header, ofset is %d size is %d adding %d\n",
ebml->header_size, ebml->header_position, len);
}
/*
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)
{
......
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