Changeset 11db57b55bf2da16a178b65df57e628ae7470257

Show
Ignore:
Timestamp:
28/05/07 22:59:00 (1 year ago)
Author:
Felix Paul Kühne <fkuehne@videolan.org>
git-committer:
Felix Paul Kühne <fkuehne@videolan.org> 1180385940 +0000
git-parent:

[4ee6aa92d66c6221f5818109ef78f0a793534a6d]

git-author:
Felix Paul Kühne <fkuehne@videolan.org> 1180385940 +0000
Message:

* prefer playlist item's meta title over its name, if available. This work-arounds a rare bug: VLC sometimes tends to show a previous item's name instead of the current one.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/playlist.m

    r2e0eb5c r11db57b  
    272272    { 
    273273        /* sanity check to prevent the NSString class from crashing */ 
    274         if( p_item->p_input->psz_name != NULL ) 
     274        if( p_item->p_input->p_meta && p_item->p_input->p_meta->psz_title &&  
     275            *p_item->p_input->p_meta->psz_title ) 
     276        { 
     277            o_value = [NSString stringWithUTF8String: 
     278                p_item->p_input->p_meta->psz_title]; 
     279            if( o_value == NULL ) 
     280                o_value = [NSString stringWithCString: 
     281                    p_item->p_input->p_meta->psz_title]; 
     282        }  
     283        else if( p_item->p_input->psz_name != NULL ) 
    275284        { 
    276285            o_value = [NSString stringWithUTF8String: