Commit 26232fc0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: keep the original picture if "early" SPU blending fails

This avoids loosing the picture context if there is one. If the
original picture has no context, it makes no difference whether the
original or the copy is kept since blending failed anyway.
parent c47e7e82
...@@ -975,8 +975,8 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced) ...@@ -975,8 +975,8 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
if (blent) { if (blent) {
VideoFormatCopyCropAr(&blent->format, &filtered->format); VideoFormatCopyCropAr(&blent->format, &filtered->format);
picture_Copy(blent, filtered); picture_Copy(blent, filtered);
if (vout->p->spu_blend) { if (vout->p->spu_blend
picture_BlendSubpicture(blent, vout->p->spu_blend, subpic); && picture_BlendSubpicture(blent, vout->p->spu_blend, subpic)) {
picture_Release(todisplay); picture_Release(todisplay);
todisplay = blent; todisplay = blent;
} else } else
......
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