mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05: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:
parent
de568c4a33
commit
8867d177c5
@ -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 @@
|
|||||||
|
|
||||||
#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)
|
|||||||
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)
|
|||||||
{
|
{
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user