Re-ordered MP4 connector source handling for improved accuracy of return messages.
This commit is contained in:
parent
6fd8fef8bb
commit
636cb51b05
1 changed files with 4 additions and 1 deletions
|
@ -452,15 +452,18 @@ namespace Connector_HTTP {
|
||||||
streamname = HTTP_R.GetHeader("X-Stream");
|
streamname = HTTP_R.GetHeader("X-Stream");
|
||||||
if (!ss){
|
if (!ss){
|
||||||
ss = Util::Stream::getStream(streamname);
|
ss = Util::Stream::getStream(streamname);
|
||||||
|
if (ss){
|
||||||
|
Strm.waitForMeta(ss);
|
||||||
|
}
|
||||||
if (!ss){
|
if (!ss){
|
||||||
DEBUG_MSG(DLVL_FAIL, "Could not connect to stream %s!", streamname.c_str());
|
DEBUG_MSG(DLVL_FAIL, "Could not connect to stream %s!", streamname.c_str());
|
||||||
ss.close();
|
ss.close();
|
||||||
HTTP_S.Clean();
|
HTTP_S.Clean();
|
||||||
|
HTTP_R.Clean();
|
||||||
HTTP_S.SetBody("No such stream is available on the system. Please try again.\n");
|
HTTP_S.SetBody("No such stream is available on the system. Please try again.\n");
|
||||||
HTTP_S.SendResponse("404", "Not found", conn);
|
HTTP_S.SendResponse("404", "Not found", conn);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Strm.waitForMeta(ss);
|
|
||||||
}
|
}
|
||||||
int videoID = -1;
|
int videoID = -1;
|
||||||
int audioID = -1;
|
int audioID = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue