summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-16 12:42:08 +0200
committerwm4 <wm4@nowhere>2016-05-16 12:42:08 +0200
commitdd99c1e3b4c32c6e6550db55192362a4d69414f0 (patch)
tree8fbafee15ee24fddd993448d460c537114d874af
parent56ed5bf1c7b14aed87b273e9a989fa88e4d332ad (diff)
downloadmpv-dd99c1e3b4c32c6e6550db55192362a4d69414f0.tar.bz2
mpv-dd99c1e3b4c32c6e6550db55192362a4d69414f0.tar.xz
vo_opengl: remove unnecessary allocation
-rw-r--r--video/out/opengl/user_shaders.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/opengl/user_shaders.c b/video/out/opengl/user_shaders.c
index 0cf80af115..65bac0ad2b 100644
--- a/video/out/opengl/user_shaders.c
+++ b/video/out/opengl/user_shaders.c
@@ -154,9 +154,7 @@ bool parse_user_shader_pass(struct mp_log *log, struct bstr *body,
}
// Unknown command type
- char *str = bstrto0(NULL, line);
- mp_err(log, "Unrecognized command '%s'!\n", str);
- talloc_free(str);
+ mp_err(log, "Unrecognized command '%.*s'!\n", BSTR_P(line));
return false;
}