Catch some VA errors
This commit is contained in:
parent
53424c01f1
commit
a68980a9e5
1 changed files with 7 additions and 2 deletions
|
@ -722,7 +722,7 @@ encoder_render_picture(struct vaapi_recorder *r, VASurfaceID input,
|
|||
if (status != VA_STATUS_SUCCESS)
|
||||
return status;
|
||||
|
||||
return 0;//vaSyncSurface(r->va_dpy, input);
|
||||
return vaSyncSurface(r->va_dpy, input);
|
||||
}
|
||||
|
||||
static VABufferID
|
||||
|
@ -809,7 +809,12 @@ encoder_encode(struct vaapi_recorder *r, VASurfaceID input)
|
|||
if (buffers[count - 1] == VA_INVALID_ID)
|
||||
goto bail;
|
||||
|
||||
encoder_render_picture(r, input, buffers, count);
|
||||
VAStatus er = encoder_render_picture(r, input, buffers, count);
|
||||
if(er != VA_STATUS_SUCCESS)
|
||||
{
|
||||
printf("error %d\n", er);
|
||||
goto bail;
|
||||
}
|
||||
ret = encoder_write_output(r, output_buf);
|
||||
|
||||
vaDestroyBuffer(r->va_dpy, output_buf);
|
||||
|
|
Loading…
Reference in a new issue