summaryrefslogtreecommitdiffstats
path: root/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 23:47:42 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 23:47:42 +0200
commit08caadb9c0b3c9070f2e5cb7f883f43d6cd5590e (patch)
treee6a6c3a2042231651ec2f622e312657da900280b /screenshot.c
parentca0979a5db442ae212c92a34dcbd97101eb5e51c (diff)
downloadmpv-08caadb9c0b3c9070f2e5cb7f883f43d6cd5590e.tar.bz2
mpv-08caadb9c0b3c9070f2e5cb7f883f43d6cd5590e.tar.xz
bstr: rename bstr() function to bstr0(), and typedef bstr to struct bstr
Replace all uses of bstr() with bstr0(). Also remove the ridiculous C++ workaround.
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c
index df92f60d89..2ed2734155 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -355,7 +355,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
char *end = strchr(template, '}');
if (!end)
goto error_exit;
- struct bstr prop = bstr_splice(bstr(template), 0, end - template);
+ struct bstr prop = bstr_splice(bstr0(template), 0, end - template);
template = end + 1;
char *s = do_format_property(mpctx, prop);
if (s)