mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: Always notify about video dimension changes
Without video we will notify width=height=0
This commit is contained in:
parent
4b9da857c0
commit
e644c61286
1 changed files with 4 additions and 1 deletions
|
@ -154,7 +154,10 @@ static void
|
|||
video_dimensions_changed_cb (GstPlayer * unused, gint width, gint height,
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue