Commit b189e402 authored by Laurent Aimar's avatar Laurent Aimar

Removed write only vout_thread_t::i_heap_size field.

parent d83763e8
...@@ -114,7 +114,6 @@ struct vout_thread_t ...@@ -114,7 +114,6 @@ struct vout_thread_t
/** \name Video heap and translation tables */ /** \name Video heap and translation tables */
/**@{*/ /**@{*/
int i_heap_size; /**< heap size */
picture_heap_t render; /**< rendered pictures */ picture_heap_t render; /**< rendered pictures */
picture_heap_t output; /**< direct buffers */ picture_heap_t output; /**< direct buffers */
......
...@@ -335,9 +335,6 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt ) ...@@ -335,9 +335,6 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
p_vout->p_picture[i_index].b_slow = 0; p_vout->p_picture[i_index].b_slow = 0;
} }
/* No images in the heap */
p_vout->i_heap_size = 0;
/* Initialize the rendering heap */ /* Initialize the rendering heap */
I_RENDERPICTURES = 0; I_RENDERPICTURES = 0;
......
...@@ -142,7 +142,6 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout, ...@@ -142,7 +142,6 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout,
p_pic->i_nb_fields = i_nb_fields; p_pic->i_nb_fields = i_nb_fields;
p_pic->b_top_field_first = b_top_field_first; p_pic->b_top_field_first = b_top_field_first;
p_vout->i_heap_size++;
p_vout->render.i_last_used_pic = p_vout->render.i_last_used_pic =
( p_vout->render.i_last_used_pic + i_pic + 1 ) ( p_vout->render.i_last_used_pic + i_pic + 1 )
% I_RENDERPICTURES; % I_RENDERPICTURES;
...@@ -187,7 +186,6 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout, ...@@ -187,7 +186,6 @@ picture_t *vout_CreatePicture( vout_thread_t *p_vout,
p_freepic->i_nb_fields = i_nb_fields; p_freepic->i_nb_fields = i_nb_fields;
p_freepic->b_top_field_first = b_top_field_first; p_freepic->b_top_field_first = b_top_field_first;
p_vout->i_heap_size++;
} }
else else
{ {
...@@ -216,7 +214,6 @@ static void DestroyPicture( vout_thread_t *p_vout, picture_t *p_picture ) ...@@ -216,7 +214,6 @@ static void DestroyPicture( vout_thread_t *p_vout, picture_t *p_picture )
vlc_assert_locked( &p_vout->picture_lock ); vlc_assert_locked( &p_vout->picture_lock );
p_picture->i_status = DESTROYED_PICTURE; p_picture->i_status = DESTROYED_PICTURE;
p_vout->i_heap_size--;
picture_CleanupQuant( p_picture ); picture_CleanupQuant( p_picture );
vlc_cond_signal( &p_vout->p->picture_wait ); vlc_cond_signal( &p_vout->p->picture_wait );
......
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