Commit fef26f2f authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a bug in input_item_GetTitleFbName (fix #2701)

parent 3ba88058
...@@ -306,13 +306,14 @@ char *input_item_GetTitleFbName( input_item_t *p_item ) ...@@ -306,13 +306,14 @@ char *input_item_GetTitleFbName( input_item_t *p_item )
if( !p_item->p_meta ) if( !p_item->p_meta )
{ {
psz_ret = p_item->psz_name ? strdup( p_item->psz_name ) : NULL;
vlc_mutex_unlock( &p_item->lock ); vlc_mutex_unlock( &p_item->lock );
return NULL; return psz_ret;
} }
const char *psz_meta = vlc_meta_Get( p_item->p_meta, vlc_meta_Title ); const char *psz_title = vlc_meta_Get( p_item->p_meta, vlc_meta_Title );
if( !EMPTY_STR( psz_meta ) ) if( !EMPTY_STR( psz_title ) )
psz_ret = strdup( psz_meta ); psz_ret = strdup( psz_title );
else else
psz_ret = p_item->psz_name ? strdup( p_item->psz_name ) : NULL; psz_ret = p_item->psz_name ? strdup( p_item->psz_name ) : NULL;
......
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