diff options
Diffstat (limited to 'video/out/vo_vaapi.c')
-rw-r--r-- | video/out/vo_vaapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index 4f79bbbd1f..6973882176 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -249,10 +249,10 @@ static void draw_image(struct vo *vo, struct mp_image *mpi) if (!IMGFMT_IS_VAAPI(mpi->imgfmt)) { struct mp_image *wrapper = p->swdec_surfaces[p->output_surface]; struct va_surface *surface = va_surface_in_mp_image(wrapper); - if (!surface) - return; - if (!va_surface_upload(surface, mpi)) + if (!surface || !va_surface_upload(surface, mpi)) { + MP_WARN(vo, "Could not upload surface.\n"); return; + } mp_image_copy_attributes(wrapper, mpi); mpi = wrapper; } |