diff options
author | wm4 <wm4@nowhere> | 2013-11-29 14:19:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-29 14:19:51 +0100 |
commit | 9edc2dbcf3859ca5ea517340d97dda9ce934ac7b (patch) | |
tree | 3a8c6ca4ef95acae6659ab3ff8205f788aae4cec /video/out/gl_common.h | |
parent | 2a316c3506766a331f7c0ef717ae8bffe21da457 (diff) | |
download | mpv-9edc2dbcf3859ca5ea517340d97dda9ce934ac7b.tar.bz2 mpv-9edc2dbcf3859ca5ea517340d97dda9ce934ac7b.tar.xz |
gl_hwdec: use a imgfmt field instead of a query_format callback
Now that vdpau always uses a single image format, this can be
simplified.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index b5dc1a27a4..8b5ac63d9a 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -182,8 +182,8 @@ struct gl_hwdec { struct gl_hwdec_driver { // Same name as used by mp_hwdec_info->load_api() const char *api_name; - // Test whether the given IMGFMT_ is supported. - bool (*query_format)(int imgfmt); + // The hardware surface IMGFMT_ that must be passed to map_image later. + int imgfmt; // Create the hwdec device. It must fill in hw->info, if applicable. // This also must set hw->converted_imgfmt. int (*create)(struct gl_hwdec *hw); |