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_video.c | |
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_video.c')
-rw-r--r-- | video/out/gl_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 0c09f29e58..881f649a34 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1948,7 +1948,7 @@ static bool init_format(int fmt, struct gl_video *init) init = &dummy; init->hwdec_active = false; - if (init->hwdec && init->hwdec->driver->query_format(fmt)) { + if (init->hwdec && init->hwdec->driver->imgfmt == fmt) { fmt = init->hwdec->converted_imgfmt; init->hwdec_active = true; } |