Commit 11db57b5 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

* prefer playlist item's meta title over its name, if available. This...

* 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.
parent 4ee6aa92
...@@ -271,7 +271,16 @@ ...@@ -271,7 +271,16 @@
if( [[o_tc identifier] isEqualToString:@"1"] ) if( [[o_tc identifier] isEqualToString:@"1"] )
{ {
/* sanity check to prevent the NSString class from crashing */ /* sanity check to prevent the NSString class from crashing */
if( p_item->p_input->psz_name != NULL ) if( p_item->p_input->p_meta && p_item->p_input->p_meta->psz_title &&
*p_item->p_input->p_meta->psz_title )
{
o_value = [NSString stringWithUTF8String:
p_item->p_input->p_meta->psz_title];
if( o_value == NULL )
o_value = [NSString stringWithCString:
p_item->p_input->p_meta->psz_title];
}
else if( p_item->p_input->psz_name != NULL )
{ {
o_value = [NSString stringWithUTF8String: o_value = [NSString stringWithUTF8String:
p_item->p_input->psz_name]; p_item->p_input->psz_name];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment