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");
|
||||
if (!ss){
|
||||
ss = Util::Stream::getStream(streamname);
|
||||
if (ss){
|
||||
Strm.waitForMeta(ss);
|
||||
}
|
||||
if (!ss){
|
||||
DEBUG_MSG(DLVL_FAIL, "Could not connect to stream %s!", streamname.c_str());
|
||||
ss.close();
|
||||
HTTP_S.Clean();
|
||||
HTTP_R.Clean();
|
||||
HTTP_S.SetBody("No such stream is available on the system. Please try again.\n");
|
||||
HTTP_S.SendResponse("404", "Not found", conn);
|
||||
continue;
|
||||
}
|
||||
Strm.waitForMeta(ss);
|
||||
}
|
||||
int videoID = -1;
|
||||
int audioID = -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue