[vlc-devel] commit: playlist: rename ML_decref() to recursively_decref(). Please give useful name to function saying what they do. (Pierre d' Herbemont )
git version control
git at videolan.org
Tue Apr 1 22:32:57 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr 1 22:33:04 2008 +0200| [3f5c8f4e99c1ae379cb6a28298180b44df13d218]
playlist: rename ML_decref() to recursively_decref(). Please give useful name to function saying what they do.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f5c8f4e99c1ae379cb6a28298180b44df13d218
---
src/playlist/engine.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index b4fc5d1..e297231 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -396,14 +396,14 @@ check_input:
PL_UNLOCK;
}
-static void ML_Decref( playlist_item_t *p_node )
+static void recursively_decref( playlist_item_t *p_node )
{
vlc_gc_decref( p_node->p_input );
int i;
if( p_node->i_children > 0 )
for( i = 0 ; i < p_node->i_children ; i++ )
- ML_Decref( p_node->pp_children[i] );
+ recursively_decref( p_node->pp_children[i] );
}
/**
@@ -494,7 +494,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
vlc_gc_incref( p_playlist->p_ml_category );
/* Decref all subitems, and the given items */
- ML_Decref( p_playlist->p_ml_category );
+ recursively_decref( p_playlist->p_ml_category );
PL_LOCK;
FOREACH_ARRAY( playlist_item_t *p_del, p_playlist->all_items )
More information about the vlc-devel
mailing list