mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
627308bd53
This fixes an issue where, when the MAX_CODECS length was equal to the amount of supported codecs (3), it would leave the list without a null terminator and crash when iterating over the elements.
20 lines
484 B
C++
20 lines
484 B
C++
#pragma once
|
|
#include <obs-module.h>
|
|
#include <string>
|
|
|
|
struct WHIPService {
|
|
std::string server;
|
|
std::string bearer_token;
|
|
|
|
WHIPService(obs_data_t *settings, obs_service_t *service);
|
|
|
|
void Update(obs_data_t *settings);
|
|
static obs_properties_t *Properties();
|
|
static void ApplyEncoderSettings(obs_data_t *video_settings,
|
|
obs_data_t *audio_settings);
|
|
bool CanTryToConnect();
|
|
const char *GetConnectInfo(enum obs_service_connect_info type);
|
|
};
|
|
|
|
void register_whip_service();
|