Commit cde22b4f authored by Rafaël Carré's avatar Rafaël Carré

Gets title for goom visualization from meta information if available

parent 5f95753f
...@@ -413,19 +413,27 @@ static char *TitleGet( vlc_object_t *p_this ) ...@@ -413,19 +413,27 @@ static char *TitleGet( vlc_object_t *p_this )
if( p_input ) if( p_input )
{ {
char *psz = strrchr( p_input->input.p_item->psz_uri, '/' ); if( p_input->input.p_item->p_meta->psz_title &&
*p_input->input.p_item->p_meta->psz_title )
if( psz )
{ {
psz++; psz_title = strdup( p_input->input.p_item->p_meta->psz_title );
} }
else else
{ {
psz = p_input->input.p_item->psz_uri; char *psz = strrchr( p_input->input.p_item->psz_uri, '/' );
}
if( psz && *psz ) if( psz )
{ {
psz_title = strdup( psz ); psz++;
}
else
{
psz = p_input->input.p_item->psz_uri;
}
if( psz && *psz )
{
psz_title = strdup( psz );
}
} }
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
......
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