gl_video: fix refcounting