diff options
author | wm4 <wm4@nowhere> | 2013-12-21 20:40:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 21:43:17 +0100 |
commit | 232b8de095b0ad493f7aa83e900e861bcb11f52a (patch) | |
tree | c8067421b8aca7ce1d0d7a2c93271b6505d3a035 /audio/filter | |
parent | d9b5652cacb12600fa58dc2076b9fe1279ea01a9 (diff) | |
download | mpv-232b8de095b0ad493f7aa83e900e861bcb11f52a.tar.bz2 mpv-232b8de095b0ad493f7aa83e900e861bcb11f52a.tar.xz |
af_export: require filename argument
Since mp_find_user_config_file() is going to get a context argument,
which would be annoying to do in the audio chain (actually I'm just
lazy).
Diffstat (limited to 'audio/filter')
-rw-r--r-- | audio/filter/af_export.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/audio/filter/af_export.c b/audio/filter/af_export.c index 3af8316cbe..a5a8257c39 100644 --- a/audio/filter/af_export.c +++ b/audio/filter/af_export.c @@ -213,11 +213,10 @@ static int af_open( struct af_instance* af ) af->filter = filter; af_export_t *priv = af->priv; - if (!priv->filename || !priv->filename[0]) - priv->filename = mp_find_user_config_file(SHARED_FILE); - - if (!priv->filename || !priv->filename[0]) + if (!priv->filename || !priv->filename[0]) { + MP_FATAL(af, "no export filename given"); return AF_ERROR; + } return AF_OK; } |