Commit 66f97910 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

lib/media_list: narrow scope of variable used in loop

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6727d548
......@@ -189,8 +189,6 @@ libvlc_media_list_new( libvlc_instance_t * p_inst )
**************************************************************************/
void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
{
libvlc_media_t * p_md;
vlc_mutex_lock( &p_mlist->refcount_lock );
p_mlist->i_refcount--;
if( p_mlist->i_refcount > 0 )
......@@ -208,7 +206,7 @@ void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
for ( int i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
{
p_md = vlc_array_item_at_index( &p_mlist->items, i );
libvlc_media_t* p_md = vlc_array_item_at_index( &p_mlist->items, i );
libvlc_media_release( p_md );
}
......
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