Skip to content

Commit

Permalink
fixup! UI: Add supported codecs to GetClientConfiguration request
Browse files Browse the repository at this point in the history
Use `astrcmpi` instead of `qstricmp`
  • Loading branch information
palana committed Jun 19, 2024
1 parent e9ed417 commit ec0bee5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UI/goliveapi-postdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include "models/multitrack-video.hpp"

#include <util/dstr.hpp>

GoLiveApi::PostData
constructGoLivePost(QString streamKey,
const std::optional<uint64_t> &maximum_aggregate_bitrate,
Expand Down Expand Up @@ -39,13 +41,13 @@ constructGoLivePost(QString streamKey,
if (!codec)
continue;

if (qstricmp(codec, "h264") == 0) {
if (astrcmpi(codec, "h264") == 0) {
add_codec("h264");
#ifdef ENABLE_HEVC
} else if (qstricmp(codec, "hevc")) {
} else if (astrcmpi(codec, "hevc")) {
add_codec("h265");
#endif
} else if (qstricmp(codec, "av1")) {
} else if (astrcmpi(codec, "av1")) {
add_codec("av1");
}
}
Expand Down

0 comments on commit ec0bee5

Please sign in to comment.