diff options
author | wm4 <wm4@nowhere> | 2012-09-06 05:29:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:28 +0200 |
commit | 0a54f5e741e395ffb14a1305529c70e817679596 (patch) | |
tree | 81ee8400cb1bd5de9ecfecf7ee9a340d4f421aeb /screenshot.c | |
parent | 65adad50ab04520748796b9752dcf61b44dafdd2 (diff) | |
download | mpv-0a54f5e741e395ffb14a1305529c70e817679596.tar.bz2 mpv-0a54f5e741e395ffb14a1305529c70e817679596.tar.xz |
commands: remove legacy slave mode get commands
These have been replaced by properties. Also remove some other slave-
mode specific get commands that can be replaced by property uses.
The get_metadata() function didn't actually contain anything useful,
and just replicated code from other parts of mplayer.
Diffstat (limited to 'screenshot.c')
-rw-r--r-- | screenshot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/screenshot.c b/screenshot.c index 79356ed9a2..a6313d01da 100644 --- a/screenshot.c +++ b/screenshot.c @@ -30,7 +30,6 @@ #include "m_property.h" #include "bstr.h" #include "mp_msg.h" -#include "metadata.h" #include "path.h" #include "libmpcodecs/mp_image.h" #include "libmpcodecs/dec_video.h" @@ -154,14 +153,13 @@ static char *create_fname(struct MPContext *mpctx, char *template, } case 'f': case 'F': { - char *video_file = get_metadata(mpctx, META_NAME); + char *video_file = mp_basename(mpctx->filename); if (video_file) { char *name = video_file; if (fmt == 'F') name = stripext(res, video_file); append_filename(&res, name); } - talloc_free(video_file); break; } case 'p': |