New special meaning "show current channel" when channel 0 is requested.

Applies to HTTP streaming only (thanks to Rolf Ahrenberg)
This commit is contained in:
Frank Schmirler
2012-04-21 22:47:36 +02:00
parent 2e8aefd2fe
commit 8719007f5a
4 changed files with 9 additions and 2 deletions

View File

@@ -111,6 +111,8 @@ const cChannel* cServerConnection::ChannelFromString(const char *String, int *Ap
if (isnumber(string)) {
int temp = strtol(String, NULL, 10);
if (temp == 0)
temp = cDevice::CurrentChannel();
if (temp >= 1 && temp <= Channels.MaxNumber())
channel = Channels.GetByNumber(temp);
} else {