diff options
Diffstat (limited to 'libavfilter/buffersrc.h')
-rw-r--r-- | libavfilter/buffersrc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h index 2bbbb8f2c4..f1f566b46e 100644 --- a/libavfilter/buffersrc.h +++ b/libavfilter/buffersrc.h @@ -53,4 +53,13 @@ enum { int av_buffersrc_add_ref(AVFilterContext *buffer_src, AVFilterBufferRef *picref, int flags); +/** + * Get the number of failed requests. + * + * A failed request is when the request_frame method is called while no + * frame is present in the buffer. + * The number is reset when a frame is added. + */ +unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src); + #endif /* AVFILTER_BUFFERSRC_H */ |