mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Added hacky check to make sure we have video to fullscreen, will be removed when the new libgstplay lands.
Original commit message from CVS: Added hacky check to make sure we have video to fullscreen, will be removed when the new libgstplay lands.
This commit is contained in:
parent
4361a3c166
commit
51af47b13a
3 changed files with 74 additions and 64 deletions
|
@ -1,3 +1,10 @@
|
|||
2001-08-15 Arik Devens <arik@gnome.org>
|
||||
|
||||
* gstmediaplay.c (gst_media_play_set_fullscreen): Added a hacky
|
||||
check to determine if we are even playing a video. workaround till
|
||||
the new libgstplay gets here and makes all of this hackishness
|
||||
unnecessary and foolish. ;-)
|
||||
|
||||
2001-08-15 Arik Devens <arik@gnome.org>
|
||||
|
||||
* main.c (main): Disabled the showing of the playlist till it
|
||||
|
|
|
@ -514,6 +514,8 @@ gst_media_play_set_fullscreen (GstMediaPlay *mplay)
|
|||
source_width = gst_play_get_source_width (play);
|
||||
source_height = gst_play_get_source_height (play);
|
||||
|
||||
if (source_width || source_height)
|
||||
{
|
||||
if (!fullscreen_active) {
|
||||
gtk_widget_hide (glade_xml_get_widget (mplay->xml, "dockitem1"));
|
||||
gtk_widget_hide (glade_xml_get_widget (mplay->xml, "dockitem2"));
|
||||
|
@ -553,6 +555,7 @@ gst_media_play_set_fullscreen (GstMediaPlay *mplay)
|
|||
|
||||
fullscreen_active = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -165,8 +165,8 @@ gst_play_init (GstPlay *play)
|
|||
priv->bit_rate_element = NULL;
|
||||
priv->media_time_element = NULL;
|
||||
|
||||
priv->source_width = 100;
|
||||
priv->source_height = 100;
|
||||
priv->source_width = 0;
|
||||
priv->source_height = 0;
|
||||
}
|
||||
|
||||
GstPlay *
|
||||
|
|
Loading…
Reference in a new issue