playback/player: gtk-play: set window title from media information

If media contains title then use it to set player window title.
This commit is contained in:
Brijesh Singh 2015-05-06 06:45:23 -05:00 committed by Sebastian Dröge
parent 611f3cde4b
commit 88e7131ae7

View file

@ -664,8 +664,15 @@ static void
media_info_updated_cb (GstPlayer * player, GstPlayerMediaInfo * media_info,
GtkPlay * play)
{
if (!gtk_widget_is_sensitive (play->media_info))
if (!gtk_widget_is_sensitive (play->media_info)) {
const gchar *title;
title = gst_player_media_info_get_title (media_info);
if (title)
set_title (play, title);
gtk_widget_set_sensitive (play->media_info, TRUE);
}
}
int