From d283eb4a5892417faf5da2f867b3747d7115ffa2 Mon Sep 17 00:00:00 2001 From: seife Date: Sat, 16 Jan 2010 12:27:32 +0000 Subject: [PATCH] dvbsubtitle: fix lots of debug output if dvbsub is not running git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@166 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- lib/libdvbsub/dvbsubtitle.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp index 7e8b02255..2fd16238c 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -277,12 +277,13 @@ int cDvbSubtitleConverter::Action(void) static cTimeMs Timeout(0xFFFF*1000); int WaitMs = WAITMS; + if (!running) + return 0; + if(!avctx) { - dbgconverter("cDvbSubtitleConverter::Convert: no context\n"); + dbgconverter("cDvbSubtitleConverter::Action: no context\n"); return -1; } - if(!running) - return 0; Lock(); if (cDvbSubtitleBitmaps *sb = bitmaps->First()) {