Encoding fixes:
- base64 library renamed to encode library - Moved urlencode/urldecode functions from HTTP library to encode library - Moved hex/unhex functions from HTTP library to encode library - Added urldecode support to RTMP urls, fixing XSplit wildcard stream support
This commit is contained in:
parent
15603bc053
commit
66dc2dc0cb
9 changed files with 197 additions and 174 deletions
|
@ -3,7 +3,6 @@
|
|||
#include <mist/mp4.h>
|
||||
#include <mist/mp4_ms.h>
|
||||
#include <mist/mp4_generic.h>
|
||||
#include <mist/base64.h>
|
||||
#include <mist/http_parser.h>
|
||||
#include <mist/stream.h>
|
||||
#include <mist/checksum.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <mist/http_parser.h>
|
||||
#include <mist/defines.h>
|
||||
#include <mist/stream.h>
|
||||
#include <mist/encode.h>
|
||||
#include <sys/stat.h>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
|
@ -57,7 +58,6 @@ namespace Mist {
|
|||
varname = data.substr(pos, nextpos - pos);
|
||||
varval.clear();
|
||||
}
|
||||
//SetVar(urlunescape(varname), urlunescape(varval));
|
||||
|
||||
if (varname == "track"){
|
||||
long long int selTrack = JSON::Value(varval).asInt();
|
||||
|
@ -549,7 +549,7 @@ namespace Mist {
|
|||
int playTransaction = amfData.getContentP(1)->NumValue();
|
||||
int playMessageType = messageType;
|
||||
int playStreamId = streamId;
|
||||
streamName = amfData.getContentP(3)->StrValue();
|
||||
streamName = Encodings::URL::decode(amfData.getContentP(3)->StrValue());
|
||||
|
||||
//handle variables
|
||||
if (streamName.find('?') != std::string::npos){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue