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