obs-ffmpeg/ffmpeg-mux: Use separate printable URL target
(Jim) printable_file allows the ability to keep a separate string for logging which will not contain things like stream keys when used with outputs such as HLS.
This commit is contained in:
@@ -70,6 +70,7 @@ static void ffmpeg_mux_destroy(void *data)
|
||||
|
||||
os_process_pipe_destroy(stream->pipe);
|
||||
dstr_free(&stream->path);
|
||||
dstr_free(&stream->printable_path);
|
||||
bfree(stream);
|
||||
}
|
||||
|
||||
@@ -354,7 +355,10 @@ int deactivate(struct ffmpeg_muxer *stream, int code)
|
||||
os_atomic_set_bool(&stream->active, false);
|
||||
os_atomic_set_bool(&stream->sent_headers, false);
|
||||
|
||||
info("Output of file '%s' stopped", stream->path.array);
|
||||
info("Output of file '%s' stopped",
|
||||
dstr_is_empty(&stream->printable_path)
|
||||
? stream->path.array
|
||||
: stream->printable_path.array);
|
||||
}
|
||||
|
||||
if (code) {
|
||||
|
Reference in New Issue
Block a user