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

@@ -76,6 +76,8 @@ static const char *devname[] = {
static int dmx_tp_count = 0;
#define MAX_TS_COUNT 8
extern bool HAL_nodec;
cDemux::cDemux(int n)
{
if (n < 0 || n > 2)
@@ -383,10 +385,14 @@ bool cDemux::pesFilter(const unsigned short pid)
case DMX_AUDIO_CHANNEL:
p_flt.pes_type = DMX_PES_OTHER;
p_flt.output = DMX_OUT_TSDEMUX_TAP;
if (HAL_nodec) /* no need to demux if we don't decode... */
return true;
break;
case DMX_VIDEO_CHANNEL:
p_flt.pes_type = DMX_PES_OTHER;
p_flt.output = DMX_OUT_TSDEMUX_TAP;
if (HAL_nodec)
return true;
break;
case DMX_PES_CHANNEL:
p_flt.pes_type = DMX_PES_OTHER;