Commit a9e970fe authored by Jean-Paul Saman's avatar Jean-Paul Saman

codec/avcodec/vaapi_x11.c: Cleanup Render()

parent 57f364e1
......@@ -638,13 +638,11 @@ static void Render(vout_display_t *vd, picture_t *picture, subpicture_t *subpict
i_region++;
}
}
if (i_region == 0)
goto out_unlock;
if (RenderDirectSubpicture(vd, picture, subpicture, i_region) != VLC_SUCCESS)
if ((i_region > 0) &&
(RenderDirectSubpicture(vd, picture, subpicture, i_region) != VLC_SUCCESS))
msg_Err(vd, "failed rendering subtitles");
out_unlock:
vlc_mutex_unlock(&picture->p_sys->surface->lock);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment