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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user