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

codec/avcodec/vaapi: remove debugging asserts.

parent 3c55e854
......@@ -428,15 +428,12 @@ static int DisplayPicture( vlc_va_t *p_external, picture_t *p_picture, AVFrame *
#endif
return VLC_EGENERIC;
assert(p_picture->p_sys);
if (!p_picture->p_sys)
return VLC_EGENERIC;
if (p_picture->p_sys->b_own_vout)
return VLC_SUCCESS;
assert( sizeof(p_picture->p_sys) == sizeof(picture_sys_t) );
/* FindSurface */
p_picture->p_sys->surface = FindSurface( p_external, i_surface_id );
if( !p_picture->p_sys->surface )
......
......@@ -757,7 +757,6 @@ static void Render(vout_display_t *vd, picture_t *picture, subpicture_t *subpict
static void PictureReleaseLocked(picture_t *pic)
{
assert(pic);
assert(sizeof(pic->p_sys) == sizeof(picture_sys_t));
if (pic->p_sys && pic->p_sys->surface)
{
......
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