summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-16 12:54:45 +0200
committerwm4 <wm4@nowhere>2016-05-16 12:54:45 +0200
commit1bc902336aabee06b7d88c68ad063c7c6dbafa8f (patch)
treec8fc2d5a3c2827b937730a1c8b878ea18c86bc1a /video/out
parent51307e9f18f6eddf6efcc1f92591370f0f141e31 (diff)
downloadmpv-1bc902336aabee06b7d88c68ad063c7c6dbafa8f.tar.bz2
mpv-1bc902336aabee06b7d88c68ad063c7c6dbafa8f.tar.xz
vo_opengl: remove another unneeded allocation
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/video.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 0198539e36..527279cd48 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -1670,9 +1670,7 @@ static float eval_szexpr(struct gl_video *p, struct img_tex tex,
}
}
- char *errname = bstrto0(NULL, name);
- MP_WARN(p, "Texture %s not found in RPN expression!\n", errname);
- talloc_free(errname);
+ MP_WARN(p, "Texture %.*s not found in RPN expression!\n", BSTR_P(name));
return 1.0;
found_tex: