Commit 43aab246 authored by Laurent Aimar's avatar Laurent Aimar

Added input_DecoderGetFifoSize helper.

parent b508c8c9
...@@ -620,6 +620,13 @@ bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_me ...@@ -620,6 +620,13 @@ bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_me
return b_changed; return b_changed;
} }
size_t input_DecoderGetFifoSize( decoder_t *p_dec )
{
decoder_owner_sys_t *p_owner = p_dec->p_owner;
return block_FifoSize( p_owner->p_fifo );
}
/***************************************************************************** /*****************************************************************************
* Internal functions * Internal functions
*****************************************************************************/ *****************************************************************************/
......
...@@ -99,4 +99,9 @@ void input_DecoderFrameNext( decoder_t *p_dec, mtime_t *pi_duration ); ...@@ -99,4 +99,9 @@ void input_DecoderFrameNext( decoder_t *p_dec, mtime_t *pi_duration );
*/ */
bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_meta_t **pp_meta ); bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_meta_t **pp_meta );
/**
* This function returns the current size in bytes of the decoder fifo
*/
size_t input_DecoderGetFifoSize( decoder_t *p_dec );
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment