mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Use OBS_CONFIG as version string for the FLV mux
This commit is contained in:
@@ -92,14 +92,16 @@ static void build_flv_meta_data(obs_output_t context,
|
||||
|
||||
enc_bool_val(&enc, end, "stereo", audio_output_channels(audio) == 2);
|
||||
|
||||
dstr_printf(&encoder_name, "%s (libobs version %d.%d.%d",
|
||||
MODULE_NAME,
|
||||
dstr_printf(&encoder_name, "%s (libobs version ",
|
||||
MODULE_NAME);
|
||||
|
||||
#ifdef HAVE_OBSCONFIG_H
|
||||
dstr_cat(&encoder_name, OBS_VERSION);
|
||||
#else
|
||||
dstr_catf(&encoder_name, "%d.%d.%d",
|
||||
LIBOBS_API_MAJOR_VER,
|
||||
LIBOBS_API_MINOR_VER,
|
||||
LIBOBS_API_PATCH_VER);
|
||||
|
||||
#ifdef HAVE_OBSCONFIG_H
|
||||
dstr_catf(&encoder_name, ", %s", OBS_VERSION);
|
||||
#endif
|
||||
|
||||
dstr_cat(&encoder_name, ")");
|
||||
|
||||
Reference in New Issue
Block a user