Commit 301a36b2 authored by Laurent Aimar's avatar Laurent Aimar

Removed unused picture_heap_t field in picture_t.

parent ebe903d6
...@@ -103,9 +103,6 @@ struct picture_t ...@@ -103,9 +103,6 @@ struct picture_t
int i_qtype; /**< quantification style */ int i_qtype; /**< quantification style */
/**@}*/ /**@}*/
/** The picture heap we are attached to */
picture_heap_t* p_heap;
/* Some vouts require the picture to be locked before it can be modified */ /* Some vouts require the picture to be locked before it can be modified */
int (* pf_lock) ( vout_thread_t *, picture_t * ); int (* pf_lock) ( vout_thread_t *, picture_t * );
int (* pf_unlock) ( vout_thread_t *, picture_t * ); int (* pf_unlock) ( vout_thread_t *, picture_t * );
......
...@@ -983,17 +983,6 @@ static int InitThread( vout_thread_t *p_vout ) ...@@ -983,17 +983,6 @@ static int InitThread( vout_thread_t *p_vout )
} }
} }
/* Link pictures back to their heap */
for( i = 0 ; i < I_RENDERPICTURES ; i++ )
{
PP_RENDERPICTURE[ i ]->p_heap = &p_vout->render;
}
for( i = 0 ; i < I_OUTPUTPICTURES ; i++ )
{
PP_OUTPUTPICTURE[ i ]->p_heap = &p_vout->output;
}
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
...@@ -408,8 +408,6 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic, ...@@ -408,8 +408,6 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
p_vout->fmt_out.i_aspect ); p_vout->fmt_out.i_aspect );
p_tmp_pic->i_type = MEMORY_PICTURE; p_tmp_pic->i_type = MEMORY_PICTURE;
p_tmp_pic->i_status = RESERVED_PICTURE; p_tmp_pic->i_status = RESERVED_PICTURE;
/* some modules (such as blend) needs to know the extra information in picture heap */
p_tmp_pic->p_heap = &p_vout->output;
} }
/* Convert image to the first direct buffer */ /* Convert image to the first direct buffer */
......
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