Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: add debug hint - TVHEADEND_DEBUG_FORCE_DVBS
  • Loading branch information
perexg committed Oct 6, 2015
1 parent 6f5fc92 commit 3840b03
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/input/mpegts/linuxdvb/linuxdvb_adapter.c
Expand Up @@ -216,9 +216,15 @@ linuxdvb_adapter_new(const char *path, int a, const char *name,
/*
*
*/
static int force_dvbs;

static dvb_fe_type_t
linuxdvb_get_type(int linux_type)
{
/* useful for debugging with DVB-T */
if (force_dvbs)
return DVB_TYPE_S;

switch (linux_type) {
case FE_QPSK:
return DVB_TYPE_S;
Expand Down Expand Up @@ -587,6 +593,8 @@ static fsmonitor_t devmon = {
void
linuxdvb_adapter_init ( void )
{
force_dvbs = getenv("TVHEADEND_DEBUG_FORCE_DVBS") != NULL;

/* Install monitor on /dev */
(void)fsmonitor_add("/dev", &devmon);

Expand Down

0 comments on commit 3840b03

Please sign in to comment.