pipe: Add int return value to video end_frame

Make it possible to report errors to frontend.

Reviewed-By: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30780>
This commit is contained in:
David Rosca
2024-08-22 14:45:11 +02:00
committed by Marge Bot
parent 96fe9fde3f
commit db45d16dfe
22 changed files with 66 additions and 47 deletions
+4 -3
View File
@@ -104,10 +104,11 @@ struct pipe_video_codec
/**
* end decoding of the current frame
* returns 0 on success
*/
void (*end_frame)(struct pipe_video_codec *codec,
struct pipe_video_buffer *target,
struct pipe_picture_desc *picture);
int (*end_frame)(struct pipe_video_codec *codec,
struct pipe_video_buffer *target,
struct pipe_picture_desc *picture);
/**
* flush any outstanding command buffers to the hardware