v4l2codecs: decoder: Add method to get the pic_buf

This helper will be needed for VP9 frame duplication.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1402>
This commit is contained in:
Nicolas Dufresne 2021-11-30 17:05:22 -05:00
parent 8a1440b3f1
commit 19d99dbcae
2 changed files with 8 additions and 0 deletions

View file

@ -1170,3 +1170,9 @@ gst_v4l2_request_failed (GstV4l2Request * request)
{
return request->failed;
}
GstBuffer *
gst_v4l2_request_dup_pic_buf (GstV4l2Request * request)
{
return gst_buffer_ref (request->pic_buf);
}

View file

@ -136,6 +136,8 @@ gint gst_v4l2_request_set_done (GstV4l2Request * request);
gboolean gst_v4l2_request_failed (GstV4l2Request * request);
GstBuffer * gst_v4l2_request_dup_pic_buf (GstV4l2Request * request);
G_END_DECLS
#endif /* __GST_V4L2_DECODER_H__ */