nhttpd: fix streaming with non-standard port

Origin commit data
------------------
Commit: 2ba024168d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
This commit is contained in:
Stefan Seyfried
2013-04-06 11:49:47 +02:00
committed by Jacek Jendrzej
parent 105fa78aa2
commit 96bb27184b

View File

@@ -2555,6 +2555,10 @@ void CControlAPI::build_live_url(CyhookHandler *hh)
url = "http://"+hh->ParamList["host"];
else
url = "http://"+hh->HeaderList["Host"];
/* strip off optional custom port */
if (url.rfind(":") != 4)
url = url.substr(0, url.rfind(":"));
//url += (mode == CZapitClient::MODE_TV) ? ":31339/0," : ":31338/";
url += ":31339/0,";
url += xpids;