Revert "obs-outputs: Fix FMS auth with query string"

This reverts commit 5cf11d6726.
master
jp9000 2018-01-21 11:25:49 -08:00
parent ae22886f67
commit cb47c61e42
1 changed files with 1 additions and 3 deletions

View File

@ -2526,10 +2526,8 @@ PublisherAuth(RTMP *r, AVal *description)
}
else if(r->Link.pubUser.av_len && r->Link.pubPasswd.av_len)
{
const char *mark = r->Link.app.av_val ? strstr(r->Link.app.av_val, "?") : NULL;
pubToken.av_val = malloc(r->Link.pubUser.av_len + av_authmod_adobe.av_len + 8);
pubToken.av_len = sprintf(pubToken.av_val, "%s%s&user=%s",
mark != NULL ? "&" : "?",
pubToken.av_len = sprintf(pubToken.av_val, "?%s&user=%s",
av_authmod_adobe.av_val,
r->Link.pubUser.av_val);
RTMP_Log(RTMP_LOGDEBUG, "%s, pubToken1: %s", __FUNCTION__, pubToken.av_val);