summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-24 11:03:00 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-24 11:03:00 +0000
commit056b5b9457795eccc48b92ff1bf61ffcd516d136 (patch)
treec07f68cce2db862026eb6313494d2b061236cbd2 /libvo/vo_gl.c
parent5560a0b358e7cda887f4b7aac96a84e3270b5c6e (diff)
downloadmpv-056b5b9457795eccc48b92ff1bf61ffcd516d136.tar.bz2
mpv-056b5b9457795eccc48b92ff1bf61ffcd516d136.tar.xz
Use a struct instead of a huge and further growing argument list.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26866 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index dc4a2452b4..d938d8fd21 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -179,9 +179,10 @@ static void update_yuvconv(void) {
float rgamma = exp(log(8.0) * eq_rgamma / 100.0);
float ggamma = exp(log(8.0) * eq_ggamma / 100.0);
float bgamma = exp(log(8.0) * eq_bgamma / 100.0);
- glSetupYUVConversion(gl_target, yuvconvtype, bri, cont, hue, sat,
- rgamma, ggamma, bgamma,
- texture_width, texture_height);
+ gl_conversion_params_t params = {gl_target, yuvconvtype,
+ bri, cont, hue, sat, rgamma, ggamma, bgamma,
+ texture_width, texture_height};
+ glSetupYUVConversion(&params);
if (custom_prog) {
FILE *f = fopen(custom_prog, "r");
if (!f)