Commit 4f23fe2e authored by Rafaël Carré's avatar Rafaël Carré

Gets title for goom visualization from meta information if available

parent 680bb209
...@@ -412,6 +412,11 @@ static char *TitleGet( vlc_object_t *p_this ) ...@@ -412,6 +412,11 @@ static char *TitleGet( vlc_object_t *p_this )
vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_ANYWHERE ); vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input ) if( p_input )
{
vlc_object_yield( p_input );
psz_title = vlc_input_item_GetInfo( p_input->input.p_item,
_("Meta-information"), _(VLC_META_TITLE) );
if( !*psz_title )
{ {
char *psz = strrchr( p_input->input.p_item->psz_uri, '/' ); char *psz = strrchr( p_input->input.p_item->psz_uri, '/' );
...@@ -427,6 +432,7 @@ static char *TitleGet( vlc_object_t *p_this ) ...@@ -427,6 +432,7 @@ static char *TitleGet( vlc_object_t *p_this )
{ {
psz_title = strdup( 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