Commit 89e2b7fc authored by Jean-Paul Saman's avatar Jean-Paul Saman

codec/avcodec/vaapi.c: abort() on runtime errors.

These conditions should not happen.
parent 8f1620b2
......@@ -418,7 +418,7 @@ static int DisplayPicture( vlc_va_t *p_external, picture_t *p_picture, AVFrame *
return VLC_EGENERIC;
if (!p_picture->p_sys)
return VLC_EGENERIC;
abort();
if (p_picture->p_sys->b_own_vout)
return VLC_SUCCESS;
......@@ -426,7 +426,7 @@ static int DisplayPicture( vlc_va_t *p_external, picture_t *p_picture, AVFrame *
/* FindSurface */
p_picture->p_sys->surface = FindSurface( p_external, i_surface_id );
if( !p_picture->p_sys->surface )
return VLC_EGENERIC;
abort();
assert(p_picture->p_sys->subpicture == NULL);
......@@ -530,6 +530,7 @@ vlc_va_t *vlc_va_NewVaapi( vlc_object_t *obj, int i_codec_id )
p_va->va.close = Delete;
return &p_va->va;
}
#else
vlc_va_t *vlc_va_NewVaapi( vlc_object_t *obj, int i_codec_id )
{
......
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