diff --git a/gst-libs/gst/codecs/gsth264picture.c b/gst-libs/gst/codecs/gsth264picture.c index b5a1de5f1b..0f23455a2a 100644 --- a/gst-libs/gst/codecs/gsth264picture.c +++ b/gst-libs/gst/codecs/gsth264picture.c @@ -587,7 +587,15 @@ gst_h264_dpb_get_picture (GstH264Dpb * dpb, guint32 system_frame_number) return NULL; } -static gboolean +/** + * gst_h264_dpb_has_empty_frame_buffer: + * @dpb: a #GstH264Dpb + * + * Returns: %TRUE if @dpb still has empty frame buffers. + * + * Since: 1.20 + */ +gboolean gst_h264_dpb_has_empty_frame_buffer (GstH264Dpb * dpb) { if (!dpb->interlaced) { diff --git a/gst-libs/gst/codecs/gsth264picture.h b/gst-libs/gst/codecs/gsth264picture.h index bdf99b5b08..5bedfe132c 100644 --- a/gst-libs/gst/codecs/gsth264picture.h +++ b/gst-libs/gst/codecs/gsth264picture.h @@ -278,6 +278,9 @@ GstH264Picture * gst_h264_dpb_get_picture (GstH264Dpb * dpb, GST_CODECS_API gint gst_h264_dpb_get_size (GstH264Dpb * dpb); +GST_CODECS_API +gboolean gst_h264_dpb_has_empty_frame_buffer (GstH264Dpb * dpb); + GST_CODECS_API gboolean gst_h264_dpb_needs_bump (GstH264Dpb * dpb, guint32 max_num_reorder_frames,