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:
Maya Venkatraman
2020-10-13 12:33:32 -07:00
committed by jp9000
parent 04596ec097
commit 966b48a0f7
4 changed files with 19 additions and 5 deletions

View File

@@ -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) {