未验证 提交 d60fb8dc 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2351 from WizardCM/named-stinger-media

Set stinger media source's name
#include <obs-module.h>
#include <util/dstr.h>
#define TIMING_TIME 0
#define TIMING_FRAME 1
......@@ -46,8 +47,12 @@ static void stinger_update(void *data, obs_data_t *settings)
obs_data_set_string(media_settings, "local_file", path);
obs_source_release(s->media_source);
s->media_source = obs_source_create_private("ffmpeg_source", NULL,
struct dstr name;
dstr_init_copy(&name, obs_source_get_name(s->source));
dstr_cat(&name, " (Stinger)");
s->media_source = obs_source_create_private("ffmpeg_source", name.array,
media_settings);
dstr_free(&name);
obs_data_release(media_settings);
int64_t point = obs_data_get_int(settings, "transition_point");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册