Skip to content

Commit

Permalink
obs-outputs: Remove custom version from FMLE string
Browse files Browse the repository at this point in the history
Causes issues with certain servers that don't parse it properly and only
expect a specific string.

Use the RTMP onMetaData to get the OBS version instead when possible.
  • Loading branch information
jp9000 committed Aug 12, 2016
1 parent 1797126 commit 27ac2cf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions plugins/obs-outputs/rtmp-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,18 +586,7 @@ static int try_connect(struct rtmp_stream *stream)

RTMP_EnableWrite(&stream->rtmp);

dstr_copy(&stream->encoder_name, "FMLE/3.0 (compatible; obs-studio/");

#ifdef HAVE_OBSCONFIG_H
dstr_cat(&stream->encoder_name, OBS_VERSION);
#else
dstr_catf(&stream->encoder_name, "%d.%d.%d",
LIBOBS_API_MAJOR_VER,
LIBOBS_API_MINOR_VER,
LIBOBS_API_PATCH_VER);
#endif

dstr_cat(&stream->encoder_name, "; FMSc/1.0)");
dstr_copy(&stream->encoder_name, "FMLE/3.0 (compatible; FMSc/1.0)");

set_rtmp_dstr(&stream->rtmp.Link.pubUser, &stream->username);
set_rtmp_dstr(&stream->rtmp.Link.pubPasswd, &stream->password);
Expand Down

0 comments on commit 27ac2cf

Please sign in to comment.