diff options
author | wm4 <wm4@nowhere> | 2015-09-25 10:03:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-25 10:03:17 +0200 |
commit | ec356d3efe73e9505d4db4bdf046629ea66b237a (patch) | |
tree | 64736268d52dc03fa003471314194acd1ecb2931 /video | |
parent | 5786d074509212ec926a9a595d54af8add4ee832 (diff) | |
download | mpv-ec356d3efe73e9505d4db4bdf046629ea66b237a.tar.bz2 mpv-ec356d3efe73e9505d4db4bdf046629ea66b237a.tar.xz |
vo_opengl: vaapi: remove unnecessary loop
Not sure what I was thinking.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index 33d8972b0a..ff04c1a065 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -109,8 +109,7 @@ static int create(struct gl_hwdec *hw) struct priv *p = talloc_zero(hw, struct priv); hw->priv = p; - for (int n = 0; n < 4; n++) - p->current_image.buf = p->current_image.image_id = VA_INVALID_ID; + p->current_image.buf = p->current_image.image_id = VA_INVALID_ID; p->log = hw->log; p->xdisplay = x11disp; p->display = vaGetDisplay(x11disp); |