diff options
author | lordjaxom <lordjaxom> | 2005-02-10 22:24:26 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-02-10 22:24:26 +0000 |
commit | ab8f0c75f39b57cd1e28545259fb08bb7b4925b3 (patch) | |
tree | 7b640887ef77c02bc09ffa0156684d76afa2492a /server/connectionHTTP.c | |
parent | c1cb77c3f8c7c0b3469e1d110f4e9a96bac16178 (diff) | |
download | vdr-plugin-streamdev-ab8f0c75f39b57cd1e28545259fb08bb7b4925b3.tar.gz vdr-plugin-streamdev-ab8f0c75f39b57cd1e28545259fb08bb7b4925b3.tar.bz2 |
- implemented audio track selection for http
Diffstat (limited to 'server/connectionHTTP.c')
-rw-r--r-- | server/connectionHTTP.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c index 914f87d..b8d1b36 100644 --- a/server/connectionHTTP.c +++ b/server/connectionHTTP.c @@ -1,5 +1,5 @@ /* - * $Id: connectionHTTP.c,v 1.5 2005/02/08 19:54:52 lordjaxom Exp $ + * $Id: connectionHTTP.c,v 1.6 2005/02/10 22:24:26 lordjaxom Exp $ */ #include "server/connectionHTTP.h" @@ -8,6 +8,7 @@ cConnectionHTTP::cConnectionHTTP(void): cServerConnection("HTTP") { m_Channel = NULL; + m_Apid = 0; m_ListChannel = NULL; m_LiveStreamer = NULL; m_Status = hsRequest; @@ -56,7 +57,7 @@ bool cConnectionHTTP::Command(char *Cmd) { cDevice *device = GetDevice(m_Channel, 0); if (device != NULL) { device->SwitchChannel(m_Channel, false); - if (m_LiveStreamer->SetChannel(m_Channel, m_StreamType)) { + if (m_LiveStreamer->SetChannel(m_Channel, m_StreamType, m_Apid)) { m_LiveStreamer->SetDevice(device); m_Startup = true; if (m_StreamType == stES && (m_Channel->Vpid() == 0 @@ -111,8 +112,9 @@ void cConnectionHTTP::Flushed(void) { } bool cConnectionHTTP::CmdGET(char *Opts) { - cChannel *chan; + const cChannel *chan; char *ep; + int apid = 0; Opts = skipspace(Opts); while (*Opts == '/') @@ -138,13 +140,17 @@ bool cConnectionHTTP::CmdGET(char *Opts) { ; *ep = '\0'; + Dprintf("before channelfromstring\n"); if (strncmp(Opts, "channels.htm", 12) == 0) { m_ListChannel = Channels.First(); m_Status = hsHeaders; - } else if ((chan = ChannelFromString(Opts)) != NULL) { + } else if ((chan = ChannelFromString(Opts, &apid)) != NULL) { m_Channel = chan; + m_Apid = apid; + Dprintf("Apid is %d\n", apid); m_Status = hsHeaders; } + Dprintf("after channelfromstring\n"); return true; } |