From 40655b9b6efd0dfb8e478e30f309c35297c55600 Mon Sep 17 00:00:00 2001 From: seife Date: Sun, 30 Jan 2011 12:34:50 +0000 Subject: [PATCH] libdvbsub: tone down debug output, shut up libavcodec git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1089 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- lib/libdvbsub/dvbsub.cpp | 2 +- lib/libdvbsub/dvbsubtitle.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libdvbsub/dvbsub.cpp b/lib/libdvbsub/dvbsub.cpp index 39dc0c9a8..ab27694ae 100644 --- a/lib/libdvbsub/dvbsub.cpp +++ b/lib/libdvbsub/dvbsub.cpp @@ -320,7 +320,7 @@ static void* reader_thread(void * /*arg*/) #endif if(!dvbsub_stopped /*!dvbsub_paused*/) { - sub_debug.print(Debug::VERBOSE, "[subtitles] ******************* new packet, len %d buf 0x%x pts-stc diff %lld *******************\n", count, buf, get_pts_stc_delta(get_pts(buf))); + sub_debug.print(Debug::VERBOSE, "[subtitles] *** new packet, len %d buf 0x%x pts-stc diff %lld ***\n", count, buf, get_pts_stc_delta(get_pts(buf))); /* Packet now in memory */ packet_queue.push(buf); /* TODO: allocation exception */ diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp index d2ef0db5c..d1e760a7f 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -188,9 +188,9 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void) if (avcodec_open(avctx, avcodec) < 0) dbgconverter("cDvbSubtitleConverter: unable to open codec !\n"); - av_log_set_level(99); - if(DebugConverter) - av_log_set_level(AV_LOG_INFO); + av_log_set_level(AV_LOG_PANIC); + //if(DebugConverter) + // av_log_set_level(AV_LOG_INFO); min_x = CFrameBuffer::getInstance()->getScreenWidth(); min_y = CFrameBuffer::getInstance()->getScreenHeight(); @@ -318,7 +318,7 @@ int cDvbSubtitleConverter::Action(void) Delta = LimitTo32Bit(sb->Pts()) - LimitTo32Bit(STC); Delta /= 90; // STC and PTS are in 1/90000s - dbgconverter("cDvbSubtitleConverter::Action: PTS: %lld STC: %lld (%lld) timeout: %d\n", sb->Pts(), STC, Delta, sb->Timeout()); + dbgconverter("cDvbSubtitleConverter::Action: PTS: %016llx STC: %016llx (%lld) timeout: %d\n", sb->Pts(), STC, Delta, sb->Timeout()); if (Delta <= MAXDELTA) { if (Delta <= SHOW_DELTA) {