playback/player: Always notify about video dimension changes

Without video we will notify width=height=0
This commit is contained in:
Sebastian Dröge 2014-08-03 15:10:13 +02:00
parent 4b9da857c0
commit e644c61286

View file

@ -154,7 +154,10 @@ static void
video_dimensions_changed_cb (GstPlayer * unused, gint width, gint height, video_dimensions_changed_cb (GstPlayer * unused, gint width, gint height,
GtkPlay * play) GtkPlay * play)
{ {
gtk_widget_show (play->video_area); if (width > 0 && height > 0)
gtk_widget_show (play->video_area);
else
gtk_widget_hide (play->video_area);
} }
int int