diff options
author | wm4 <wm4@nowhere> | 2013-11-27 21:12:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-27 21:14:39 +0100 |
commit | 6e2ac4d40add2ad316ed312933e51f58a7a7650c (patch) | |
tree | 94c9b5e1a68fb187fa433fb78a80cc23a3ade8ef /audio | |
parent | aa73ac8db81b8efb04bf2a5c7256e8a847f49fed (diff) | |
download | mpv-6e2ac4d40add2ad316ed312933e51f58a7a7650c.tar.bz2 mpv-6e2ac4d40add2ad316ed312933e51f58a7a7650c.tar.xz |
af_lavi: actually free the filter graph on uninit
This was a memory leak.
Also remove the AF_CONTROL_COMMAND_LINE code, which was inactive. (It's
never called if the new option parser is used.)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/filter/af_lavfi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/audio/filter/af_lavfi.c b/audio/filter/af_lavfi.c index 57a1055149..6ef5bf6f80 100644 --- a/audio/filter/af_lavfi.c +++ b/audio/filter/af_lavfi.c @@ -202,11 +202,6 @@ static int control(struct af_instance *af, int cmd, void *arg) return mp_audio_config_equals(in, &orig_in) ? AF_OK : AF_FALSE; } - case AF_CONTROL_COMMAND_LINE: { - talloc_free(p->cfg_graph); - p->cfg_graph = talloc_strdup(p, (char *)arg); - return AF_OK; - } } return AF_UNKNOWN; } @@ -280,6 +275,7 @@ static struct mp_audio *play(struct af_instance *af, struct mp_audio *data) static void uninit(struct af_instance *af) { + destroy_graph(af); } static int af_open(struct af_instance *af) |