generic-pc: silence decoder threads output

This commit is contained in:
Stefan Seyfried
2013-06-01 15:39:19 +02:00
parent 2efe616a23
commit 619751eaf0
2 changed files with 8 additions and 9 deletions

View File

@@ -102,22 +102,22 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
int cAudio::Start(void) int cAudio::Start(void)
{ {
lt_info("%s >\n", __func__); lt_debug("%s >\n", __func__);
if (! HAL_nodec) if (! HAL_nodec)
OpenThreads::Thread::start(); OpenThreads::Thread::start();
lt_info("%s <\n", __func__); lt_debug("%s <\n", __func__);
return 0; return 0;
} }
int cAudio::Stop(void) int cAudio::Stop(void)
{ {
lt_info("%s >\n", __func__); lt_debug("%s >\n", __func__);
if (thread_started) if (thread_started)
{ {
thread_started = false; thread_started = false;
OpenThreads::Thread::join(); OpenThreads::Thread::join();
} }
lt_info("%s <\n", __func__); lt_debug("%s <\n", __func__);
return 0; return 0;
} }

View File

@@ -139,21 +139,21 @@ int cVideo::setCroppingMode(int)
int cVideo::Start(void *, unsigned short, unsigned short, void *) int cVideo::Start(void *, unsigned short, unsigned short, void *)
{ {
lt_info("%s running %d >\n", __func__, thread_running); lt_debug("%s running %d >\n", __func__, thread_running);
if (!thread_running && !HAL_nodec) if (!thread_running && !HAL_nodec)
OpenThreads::Thread::start(); OpenThreads::Thread::start();
lt_info("%s running %d <\n", __func__, thread_running); lt_debug("%s running %d <\n", __func__, thread_running);
return 0; return 0;
} }
int cVideo::Stop(bool) int cVideo::Stop(bool)
{ {
lt_info("%s running %d >\n", __func__, thread_running); lt_debug("%s running %d >\n", __func__, thread_running);
if (thread_running) { if (thread_running) {
thread_running = false; thread_running = false;
OpenThreads::Thread::join(); OpenThreads::Thread::join();
} }
lt_info("%s running %d <\n", __func__, thread_running); lt_debug("%s running %d <\n", __func__, thread_running);
return 0; return 0;
} }
@@ -438,7 +438,6 @@ void cVideo::run(void)
if (! thread_running) if (! thread_running)
goto out; goto out;
} }
lt_info("%s: nb_streams %d\n", __func__, avfc->nb_streams);
if (avfc->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) if (avfc->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO)
lt_info("%s: no video codec? 0x%x\n", __func__, avfc->streams[0]->codec->codec_type); lt_info("%s: no video codec? 0x%x\n", __func__, avfc->streams[0]->codec->codec_type);