diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-02 21:17:26 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-02 21:26:17 +0100 |
commit | ca956af446387f409f51160c1d2c674f70788bda (patch) | |
tree | f902d17aaf883211d58c24b1a050a5a7eaaa9c08 /video/out/gl_video.c | |
parent | 14d92a4685417610e63307926a799cd5c43b1940 (diff) | |
download | mpv-ca956af446387f409f51160c1d2c674f70788bda.tar.bz2 mpv-ca956af446387f409f51160c1d2c674f70788bda.tar.xz |
gl_video: change internal API for hwdec mp_image download
Previous API worked under the assumption that download_image is always called
after map_image. In practice this is true, but it's better to have a much
generic API that doesn't depend on the order in which the functions are called.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 2660dacf7a..b3728eef44 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1700,7 +1700,8 @@ struct mp_image *gl_video_download_image(struct gl_video *p) return NULL; if (p->hwdec_active && p->hwdec->driver->download_image) { - struct mp_image *dlimage = p->hwdec->driver->download_image(p->hwdec); + struct mp_image *dlimage = + p->hwdec->driver->download_image(p->hwdec, vimg->hwimage); if (dlimage) mp_image_set_attributes(dlimage, &p->image_params); return dlimage; |