Commit 92f03b70 authored by Andrew de Quincey's avatar Andrew de Quincey

Added selection of DVB device minor number

parent 1a8a1abe
......@@ -2,7 +2,7 @@
* dvbinput.cpp: DVB streams
*-------------------------------------------------------------------------------
* (c)1999-2002 VideoLAN
* $Id: dvbinput.cpp,v 1.32 2003/08/17 00:00:17 adq Exp $
* $Id: dvbinput.cpp,v 1.33 2003/08/17 03:59:38 adq Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
* Damien Lucas <nitrox@videolan.org>
......@@ -140,6 +140,7 @@ C_DvbInput::~C_DvbInput()
void C_DvbInput::OnInit()
{
int iNumber;
int iMinor;
C_String strType;
C_String dvbrc;
char filen[FILELEN];
......@@ -150,6 +151,7 @@ void C_DvbInput::OnInit()
ASSERT(pApp);
iNumber = pApp->GetSetting(GetName() + ".devicenumber", "0").ToInt();
iMinor = pApp->GetSetting(GetName() + ".minor", "0").ToInt();
m_strTrickPlayType = pApp->GetSetting(GetName() + ".trickplay", "Normal").ToLower();
m_iSendMethod = pApp->GetSetting(GetName() + ".sendmethod", "0").ToInt();
m_bIgnoreTimeout = pApp->GetSetting(GetName()+".ignoretimeout", "0").ToInt();
......@@ -159,7 +161,7 @@ void C_DvbInput::OnInit()
{
strncpy(filen, dvbrc.GetString(), dvbrc.Length()+1);
}
dvb->init("", "", 0, iNumber);
dvb->init("", "", iNumber, iMinor);
sprintf(devname, DVR_DEV, iNumber, 0); m_strDVR = C_String(devname);
sprintf(devname, DEMUX_DEV, iNumber, 0); m_strDEMUX = C_String(devname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment