From 8719007f5adb33d563354cec074330647032aac9 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sat, 21 Apr 2012 22:47:36 +0200 Subject: New special meaning "show current channel" when channel 0 is requested. Applies to HTTP streaming only (thanks to Rolf Ahrenberg) --- server/connection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server') diff --git a/server/connection.c b/server/connection.c index ced28e1..212483c 100644 --- a/server/connection.c +++ b/server/connection.c @@ -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 { -- cgit v1.2.3