From 179c6ec2fd0886dc6560f6c79f77e109e2ce13d7 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 23 Apr 2014 15:10:50 +0200 Subject: [PATCH] Remove some traces sent to application stdout. * This may be fine in media server where it lands in logs, but certainly not when the code is run in applications. * Helps with all media-related webkit tests. --- src/add-ons/media/plugins/ffmpeg/CpuCapabilities.cpp | 2 -- src/add-ons/media/plugins/ffmpeg/gfx_util.cpp | 2 +- src/kits/media/MediaEventLooper.cpp | 2 -- src/kits/media/MediaRoster.cpp | 7 ------- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/add-ons/media/plugins/ffmpeg/CpuCapabilities.cpp b/src/add-ons/media/plugins/ffmpeg/CpuCapabilities.cpp index 2c100308a4..de2baf4e65 100644 --- a/src/add-ons/media/plugins/ffmpeg/CpuCapabilities.cpp +++ b/src/add-ons/media/plugins/ffmpeg/CpuCapabilities.cpp @@ -26,8 +26,6 @@ CPUCapabilities::CPUCapabilities() #if defined(__INTEL__) || defined(__x86_64__) _SetIntelCapabilities(); #endif - - PrintCapabilities(); } diff --git a/src/add-ons/media/plugins/ffmpeg/gfx_util.cpp b/src/add-ons/media/plugins/ffmpeg/gfx_util.cpp index 8b134c89c5..10b0f8bd36 100644 --- a/src/add-ons/media/plugins/ffmpeg/gfx_util.cpp +++ b/src/add-ons/media/plugins/ffmpeg/gfx_util.cpp @@ -12,7 +12,7 @@ // http://www.joemaller.com/fcp/fxscript_yuv_color.shtml -#if 1 +#if DEBUG #define TRACE(a...) printf(a) #else #define TRACE(a...) diff --git a/src/kits/media/MediaEventLooper.cpp b/src/kits/media/MediaEventLooper.cpp index c8172c76d7..fa79e52d9d 100644 --- a/src/kits/media/MediaEventLooper.cpp +++ b/src/kits/media/MediaEventLooper.cpp @@ -429,8 +429,6 @@ BMediaEventLooper::Run() // get latency information fSchedulingLatency = estimate_max_scheduling_latency(fControlThread); - printf("BMediaEventLooper: SchedulingLatency is %" B_PRId64 "\n", - fSchedulingLatency); } diff --git a/src/kits/media/MediaRoster.cpp b/src/kits/media/MediaRoster.cpp index 064a2297b8..108fc07fbd 100644 --- a/src/kits/media/MediaRoster.cpp +++ b/src/kits/media/MediaRoster.cpp @@ -1037,7 +1037,6 @@ BMediaRoster::Connect(const media_source& from, const media_destination& to, strcpy(out_output->name, reply5.name); // the connection is now made - printf("BMediaRoster::Connect connection established!\n"); PRINT_FORMAT(" format", *io_format); PRINT_INPUT(" input", *out_input); PRINT_OUTPUT(" output", *out_output); @@ -2266,12 +2265,6 @@ BMediaRoster::GetParameterWebFor(const media_node& node, BParameterWeb** _web) if (web == NULL) rv = B_NO_MEMORY; else { - printf("BMediaRoster::GetParameterWebFor Unflattening %" - B_PRId32 " bytes, %#" B_PRIx32 ", %#" B_PRIx32 ", %#" - B_PRIx32 ", %#" B_PRIx32 "\n", reply.size, - ((uint32*)data)[0], ((uint32*)data)[1], ((uint32*)data)[2], - ((uint32*)data)[3]); - rv = web->Unflatten(reply.code, data, reply.size); if (rv != B_OK) { ERROR("BMediaRoster::GetParameterWebFor Unflatten failed, "