From f0d0822595c7dc3e2a20aa3e153a94f08f1d88dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Dec 2019 20:18:35 +0100 Subject: demux: fix --stream-record runtime change handling Well, if that wasn't particularly dumb. --- demux/demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index c0b0c2fb65..d1ff9cc762 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -2444,8 +2444,8 @@ static void update_opts(struct demux_internal *in) mp_recorder_destroy(in->recorder); in->recorder = NULL; } - in->record_filename = talloc_strdup(in, opts->record_file); talloc_free(in->record_filename); + in->record_filename = talloc_strdup(in, opts->record_file); // Note: actual recording only starts once packets are read. It may be // important to delay creating in->recorder to that point, because the // demuxer might detect more streams until finding the first packet. -- cgit v1.2.3