diff options
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/hwdec_osx.c | 2 | ||||
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/video/out/opengl/hwdec_osx.c b/video/out/opengl/hwdec_osx.c index 6ddfa66e0a..17399a80f4 100644 --- a/video/out/opengl/hwdec_osx.c +++ b/video/out/opengl/hwdec_osx.c @@ -186,7 +186,7 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) { assert(params->imgfmt == hw->driver->imgfmt); - struct vt_format *f = vt_get_gl_format(params->hw_subfmt); + struct vt_format *f = vt_get_gl_format_from_imgfmt(params->hw_subfmt); if (!f) { MP_ERR(hw, "Unsupported CVPixelBuffer format.\n"); return -1; diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index 6c52cdde11..1de5969bc4 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -250,17 +250,16 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) } gl->BindTexture(GL_TEXTURE_2D, 0); - p->current_mpfmt = va_fourcc_to_imgfmt(params->hw_subfmt); + p->current_mpfmt = params->hw_subfmt; if (p->current_mpfmt != IMGFMT_NV12 && p->current_mpfmt != IMGFMT_420P) { MP_FATAL(p, "unsupported VA image format %s\n", - mp_tag_str(params->hw_subfmt)); + mp_imgfmt_to_name(p->current_mpfmt)); return -1; } - MP_VERBOSE(p, "format: %s %s\n", mp_tag_str(params->hw_subfmt), - mp_imgfmt_to_name(p->current_mpfmt)); + MP_VERBOSE(p, "hw format: %s\n", mp_imgfmt_to_name(p->current_mpfmt)); params->imgfmt = p->current_mpfmt; |