mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Fix preprocessor directives for platform integrations
The macros `YOUTUBE_ENABLED`, `RESTREAM_ENABLED`, and `TWITCH_ENABLED`
are not defined when the associated features are not enabled.
When the code was originally implemented, there were definitions to set
`0` if the feature is disabled. However a later commit 349372b removes
the definition. Now, the use of `#ifdef` is better than just `#if`.
This commit is contained in:
committed by
Ryan Foster
parent
8789c43959
commit
39d4b53f6b
@@ -626,7 +626,7 @@ private:
|
||||
bool broadcastActive = false;
|
||||
bool broadcastReady = false;
|
||||
QPointer<QThread> youtubeStreamCheckThread;
|
||||
#if YOUTUBE_ENABLED
|
||||
#ifdef YOUTUBE_ENABLED
|
||||
void YoutubeStreamCheck(const std::string &key);
|
||||
void ShowYouTubeAutoStartWarning();
|
||||
void YouTubeActionDialogOk(const QString &id, const QString &key,
|
||||
|
||||
Reference in New Issue
Block a user