X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fplaylist%2Fcontrol.c;h=aec26adae516bf8ba947b604be5eaaf666098068;hb=c21acbbcf5f0c6969fcd3a2daf6812925f334fa5;hp=5ac0ee60b3d61d411010644e52968849063bf231;hpb=105598d5b7e6b2ff69e5884b44d7d3ca3f6c919d;p=vlc diff --git a/src/playlist/control.c b/src/playlist/control.c index 5ac0ee60b3..aec26adae5 100644 --- a/src/playlist/control.c +++ b/src/playlist/control.c @@ -25,8 +25,6 @@ #include #include "vlc_playlist.h" -#define PLAYLIST_DEBUG 1 - /***************************************************************************** * Local prototypes *****************************************************************************/ @@ -335,9 +333,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) /* Start the real work */ if( p_playlist->request.b_request ) { -#ifdef PLAYLIST_DEBUG - msg_Dbg( p_playlist,"processing request" ); -#endif + PL_DEBUG( "processing request" ); p_new = p_playlist->request.p_item; i_skip = p_playlist->request.i_skip; @@ -359,10 +355,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) p_new ); if( p_new == NULL ) { -#ifdef PLAYLIST_DEBUG - msg_Dbg( p_playlist, "looping - restarting at beginning " - "of node" ); -#endif + PL_DEBUG( "looping - restarting at beginning of node" ); p_new = playlist_GetNextLeaf( p_playlist, p_playlist->request.p_node, NULL ); @@ -379,10 +372,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) p_new ); if( p_new == NULL ) { -#ifdef PLAYLIST_DEBUG - msg_Dbg( p_playlist, "looping - restarting at end " - "of node" ); -#endif + PL_DEBUG( "looping - restarting at end of node" ); /** \bug This is needed because GetPrevLeaf does not loop * by itself */ p_new = playlist_GetLastLeaf( p_playlist, @@ -397,9 +387,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) /* "Automatic" item change ( next ) */ else { -#ifdef PLAYLIST_DEBUG - msg_Dbg( p_playlist,"changing item without a request" ); -#endif + PL_DEBUG( "changing item without a request" ); /* Cant go to next from current item */ if( p_playlist->status.p_item && p_playlist->status.p_item->i_flags & PLAYLIST_SKIP_FLAG ) @@ -410,9 +398,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) p_playlist->status.p_item ); if( p_new == NULL && b_loop ) { -#ifdef PLAYLIST_DEBUG - msg_Dbg( p_playlist, "looping" ); -#endif + PL_DEBUG( "looping" ); p_new = playlist_GetNextLeaf( p_playlist, p_playlist->status.p_node, NULL );