mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +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,
|
video_dimensions_changed_cb (GstPlayer * unused, gint width, gint height,
|
||||||
GtkPlay * play)
|
GtkPlay * play)
|
||||||
{
|
{
|
||||||
|
if (width > 0 && height > 0)
|
||||||
gtk_widget_show (play->video_area);
|
gtk_widget_show (play->video_area);
|
||||||
|
else
|
||||||
|
gtk_widget_hide (play->video_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue