summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-29 20:18:35 +0100
committerwm4 <wm4@nowhere>2019-12-29 20:18:35 +0100
commitf0d0822595c7dc3e2a20aa3e153a94f08f1d88dd (patch)
tree663b1bce17d186a88c8b8f6bd7027f9fc480fb03
parent0737d842b0ec506dbaa7107d40129b0544fec669 (diff)
downloadmpv-f0d0822595c7dc3e2a20aa3e153a94f08f1d88dd.tar.bz2
mpv-f0d0822595c7dc3e2a20aa3e153a94f08f1d88dd.tar.xz
demux: fix --stream-record runtime change handling
Well, if that wasn't particularly dumb.
-rw-r--r--demux/demux.c2
1 files changed, 1 insertions, 1 deletions
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.