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:
Arik Devens 2001-08-15 22:43:09 +00:00
parent 4361a3c166
commit 51af47b13a
3 changed files with 74 additions and 64 deletions

View file

@ -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

View file

@ -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"));
@ -554,6 +556,7 @@ gst_media_play_set_fullscreen (GstMediaPlay *mplay)
fullscreen_active = FALSE;
}
}
}
static void
gst_media_play_frame_displayed (GstPlay *play, GstMediaPlay *mplay)

View file

@ -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 *