New upstream version 26.1.0+dfsg1
This commit is contained in:
parent
040dcc3fc2
commit
013818c4af
594 changed files with 19576 additions and 4478 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <obs-module.h>
|
||||
#include <util/dstr.h>
|
||||
|
||||
struct rtmp_custom {
|
||||
char *server, *key;
|
||||
|
|
@ -109,6 +110,19 @@ static const char *rtmp_custom_password(void *data)
|
|||
return service->password;
|
||||
}
|
||||
|
||||
#define RTMP_PROTOCOL "rtmp"
|
||||
|
||||
static void rtmp_custom_apply_settings(void *data, obs_data_t *video_settings,
|
||||
obs_data_t *audio_settings)
|
||||
{
|
||||
struct rtmp_custom *service = data;
|
||||
if (service->server != NULL && video_settings != NULL &&
|
||||
strncmp(service->server, RTMP_PROTOCOL, strlen(RTMP_PROTOCOL)) !=
|
||||
0) {
|
||||
obs_data_set_bool(video_settings, "repeat_headers", true);
|
||||
}
|
||||
}
|
||||
|
||||
struct obs_service_info rtmp_custom_service = {
|
||||
.id = "rtmp_custom",
|
||||
.get_name = rtmp_custom_name,
|
||||
|
|
@ -120,4 +134,5 @@ struct obs_service_info rtmp_custom_service = {
|
|||
.get_key = rtmp_custom_key,
|
||||
.get_username = rtmp_custom_username,
|
||||
.get_password = rtmp_custom_password,
|
||||
.apply_encoder_settings = rtmp_custom_apply_settings,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue