p_owner->p_aout_input, p_buffer );
}
-
-int vout_CountPictureAvailable( vout_thread_t *p_vout );
-
static picture_t *vout_new_buffer( decoder_t *p_dec )
{
decoder_owner_sys_t *p_owner = p_dec->p_owner;
*/
for( ;; )
{
- picture_t *p_picture;
-
if( p_dec->b_die || p_dec->b_error )
return NULL;
- /* The video filter chain required that there is always 1 free buffer
- * that it will use as temporary one. It will release the temporary
- * buffer once its work is done, so this check is safe even if we don't
- * lock around both count() and create().
- */
- if( vout_CountPictureAvailable( p_owner->p_vout ) >= 2 )
- {
- p_picture = vout_CreatePicture( p_owner->p_vout, 0, 0, 0 );
- if( p_picture )
- return p_picture;
- }
+ picture_t *p_picture = vout_CreatePicture( p_owner->p_vout, 0, 0, 0 );
+ if( p_picture )
+ return p_picture;
if( DecoderIsFlushing( p_dec ) )
return NULL;
#ifndef _VOUT_CONTROL_H
#define _VOUT_CONTROL_H 1
-/* DO NOT use vout_CountPictureAvailable unless your are in src/input/decoder.c (no exception) */
-int vout_CountPictureAvailable( vout_thread_t * );
-
/**
* This function will (un)pause the display of pictures.
* It is thread safe
* It needs locking since several pictures can be created by several producers
* threads.
*/
-int vout_CountPictureAvailable( vout_thread_t *p_vout )
-{
-#warning "TODO remove vout_CountPictureAvailable"
- return VOUT_MAX_PICTURES;
-}
-
picture_t *vout_CreatePicture( vout_thread_t *p_vout,
bool b_progressive,
bool b_top_field_first,