mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 16:01:22 +02:00
generic-pc: silence decoder threads output
This commit is contained in:
@@ -102,22 +102,22 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
|
||||
|
||||
int cAudio::Start(void)
|
||||
{
|
||||
lt_info("%s >\n", __func__);
|
||||
lt_debug("%s >\n", __func__);
|
||||
if (! HAL_nodec)
|
||||
OpenThreads::Thread::start();
|
||||
lt_info("%s <\n", __func__);
|
||||
lt_debug("%s <\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cAudio::Stop(void)
|
||||
{
|
||||
lt_info("%s >\n", __func__);
|
||||
lt_debug("%s >\n", __func__);
|
||||
if (thread_started)
|
||||
{
|
||||
thread_started = false;
|
||||
OpenThreads::Thread::join();
|
||||
}
|
||||
lt_info("%s <\n", __func__);
|
||||
lt_debug("%s <\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -139,21 +139,21 @@ int cVideo::setCroppingMode(int)
|
||||
|
||||
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)
|
||||
OpenThreads::Thread::start();
|
||||
lt_info("%s running %d <\n", __func__, thread_running);
|
||||
lt_debug("%s running %d <\n", __func__, thread_running);
|
||||
return 0;
|
||||
}
|
||||
|
||||
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) {
|
||||
thread_running = false;
|
||||
OpenThreads::Thread::join();
|
||||
}
|
||||
lt_info("%s running %d <\n", __func__, thread_running);
|
||||
lt_debug("%s running %d <\n", __func__, thread_running);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -438,7 +438,6 @@ void cVideo::run(void)
|
||||
if (! thread_running)
|
||||
goto out;
|
||||
}
|
||||
lt_info("%s: nb_streams %d\n", __func__, avfc->nb_streams);
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user