]> git.sesse.net Git - vlc/commitdiff
Removed now useless vout_CountPictureAvailable.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 23 Apr 2010 20:57:49 +0000 (22:57 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 23 Apr 2010 20:57:49 +0000 (22:57 +0200)
src/input/decoder.c
src/video_output/vout_control.h
src/video_output/vout_pictures.c

index 5cf35bb0599775382b97eb3cbd8c560fd446868c..5d65be826aaac5709f4a9bb9c0529ff6ca66f6ae 100644 (file)
@@ -2252,9 +2252,6 @@ static void aout_del_buffer( decoder_t *p_dec, aout_buffer_t *p_buffer )
                           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;
@@ -2353,22 +2350,12 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
      */
     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;
index ff2c622eeafb05313439bc3bf918488968facaf0..db179a8c785b51b3f61df1526806dad4579985d2 100644 (file)
@@ -30,9 +30,6 @@
 #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
index e737b7bb076de00b7d9c0b7adf7df30dd3c1ae19..8bac6e495a5b5bc3b5a78c7fa67019fcde06ad7e 100644 (file)
@@ -70,12 +70,6 @@ void vout_DisplayPicture( vout_thread_t *p_vout, picture_t *p_pic )
  * 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,