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

vdpau: missing error case handling

parent 064631b9
......@@ -474,10 +474,15 @@ static picture_t *MixerRender(filter_t *filter, picture_t *src)
src = sys->import(filter, src);
/* Update history and take "present" picture field */
sys->history[MAX_PAST + MAX_FUTURE].field = vlc_vdp_video_detach(src);
sys->history[MAX_PAST + MAX_FUTURE].date = src->date;
sys->history[MAX_PAST + MAX_FUTURE].force = src->b_force;
picture_Release(src);
if (likely(src != NULL))
{
sys->history[MAX_PAST + MAX_FUTURE].field = vlc_vdp_video_detach(src);
sys->history[MAX_PAST + MAX_FUTURE].date = src->date;
sys->history[MAX_PAST + MAX_FUTURE].force = src->b_force;
picture_Release(src);
}
else
sys->history[MAX_PAST + MAX_FUTURE].field = NULL;
vlc_vdp_video_field_t *f = sys->history[MAX_PAST].field;
if (f == NULL)
......
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