Changeset 5adf43c6b1c5755f6fd29aa89cade21ab8802b53

Show
Ignore:
Timestamp:
16/09/06 23:00:15 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1158440415 +0000
git-parent:

[e12ddbf298a8be3e880012728b2d95fa23821312]

git-author:
Clément Stenac <zorglub@videolan.org> 1158440415 +0000
Message:

Fix crash

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/playlist/control.c

    raba3de3 r5adf43c  
    359359    if( p_playlist->request.b_request ) 
    360360    { 
    361         PL_DEBUG( "processing request node %s item %s skip %i", 
     361        PL_DEBUG( "processing request item %s node %s skip %i", 
    362362                        PLI_NAME( p_playlist->request.p_item ), 
    363363                        PLI_NAME( p_playlist->request.p_node ), i_skip ); 
  • src/playlist/tree.c

    r4e5e7e2 r5adf43c  
    664664            if( i-1 < 0 ) 
    665665            { 
    666                 /* Was already the first sibling. Look for uncles */ 
    667                 PL_DEBUG( "Current item is the first of the node," 
     666               /* Was already the first sibling. Look for uncles */ 
     667                PL_DEBUG( "current item is the first of its node," 
    668668                          "looking for uncle from %s", 
    669669                          p_parent->p_input->psz_name ); 
     670                if( p_parent == p_root ) 
     671                { 
     672                    PL_DEBUG( "already at root" ); 
     673                    return NULL; 
     674                } 
    670675                return GetPrevUncle( p_playlist, p_item, p_root ); 
    671676            }