generic-pc: allow to disable softdecoder for debugging

Origin commit data
------------------
Branch: master
Commit: 5f0fb850d6
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-10 (Fri, 10 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-05-10 13:37:24 +02:00
parent 6fb7e1da86
commit bb0f574e58
4 changed files with 22 additions and 4 deletions

View File

@@ -45,12 +45,15 @@ extern cDemux *audioDemux;
static uint8_t *dmxbuf = NULL;
static int bufpos;
extern bool HAL_nodec;
static cAudio *gThiz = NULL;
cAudio::cAudio(void *, void *, void *)
{
thread_started = false;
dmxbuf = (uint8_t *)malloc(DMX_BUF_SZ);
if (!HAL_nodec)
dmxbuf = (uint8_t *)malloc(DMX_BUF_SZ);
bufpos = 0;
curr_pts = 0;
gThiz = this;
@@ -89,7 +92,8 @@ int cAudio::setVolume(unsigned int left, unsigned int right)
int cAudio::Start(void)
{
lt_info("%s >\n", __func__);
OpenThreads::Thread::start();
if (! HAL_nodec)
OpenThreads::Thread::start();
lt_info("%s <\n", __func__);
return 0;
}