[vlc-commits] commit: indentation (Jakob Leben )

git at videolan.org git at videolan.org
Sun Jun 20 15:44:37 CEST 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Sun Jun 20 14:50:45 2010 +0200| [b24d9e0fdf09a530c39dc01cffb6e4173217cbc4] | committer: Jakob Leben 

indentation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b24d9e0fdf09a530c39dc01cffb6e4173217cbc4
---

 src/playlist/tree.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/playlist/tree.c b/src/playlist/tree.c
index ebaa68a..196ab80 100644
--- a/src/playlist/tree.c
+++ b/src/playlist/tree.c
@@ -220,17 +220,17 @@ int playlist_NodeInsert( playlist_t *p_playlist,
                          int i_position )
 {
     PL_ASSERT_LOCKED;
-   (void)p_playlist;
-   assert( p_parent && p_parent->i_children != -1 );
-   if( i_position == -1 ) i_position = p_parent->i_children ;
-   assert( i_position <= p_parent->i_children);
-
-   INSERT_ELEM( p_parent->pp_children,
-                p_parent->i_children,
-                i_position,
-                p_item );
-   p_item->p_parent = p_parent;
-   return VLC_SUCCESS;
+    (void)p_playlist;
+    assert( p_parent && p_parent->i_children != -1 );
+    if( i_position == -1 ) i_position = p_parent->i_children ;
+    assert( i_position <= p_parent->i_children);
+
+    INSERT_ELEM( p_parent->pp_children,
+                 p_parent->i_children,
+                 i_position,
+                 p_item );
+    p_item->p_parent = p_parent;
+    return VLC_SUCCESS;
 }
 
 /**
@@ -246,18 +246,18 @@ int playlist_NodeRemoveItem( playlist_t *p_playlist,
                         playlist_item_t *p_parent )
 {
     PL_ASSERT_LOCKED;
-   (void)p_playlist;
-
-   int ret = VLC_EGENERIC;
-
-   for(int i= 0; i< p_parent->i_children ; i++ )
-   {
-       if( p_parent->pp_children[i] == p_item )
-       {
-           REMOVE_ELEM( p_parent->pp_children, p_parent->i_children, i );
-           ret = VLC_SUCCESS;
-       }
-   }
+    (void)p_playlist;
+
+    int ret = VLC_EGENERIC;
+
+    for(int i= 0; i< p_parent->i_children ; i++ )
+    {
+        if( p_parent->pp_children[i] == p_item )
+        {
+            REMOVE_ELEM( p_parent->pp_children, p_parent->i_children, i );
+            ret = VLC_SUCCESS;
+        }
+    }
 
     if( ret == VLC_SUCCESS ) {
         assert( p_item->p_parent == p_parent );



More information about the vlc-commits mailing list