[totem] main: Avoid some warnings zooming in on startup
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Avoid some warnings zooming in on startup
- Date: Fri, 17 Dec 2010 13:25:42 +0000 (UTC)
commit 29c3c8d614f2dc54f7f4b2c6afe73f75e713b7a5
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 17 13:19:10 2010 +0000
main: Avoid some warnings zooming in on startup
src/totem-object.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 711e068..d3832b9 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1999,6 +1999,9 @@ totem_action_zoom (TotemObject *totem, double zoom)
GtkAction *action;
gboolean zoom_reset, zoom_in, zoom_out;
+ if (totem->bvw == NULL)
+ return;
+
if (zoom == ZOOM_ENABLE)
zoom = bacon_video_widget_get_zoom (totem->bvw);
@@ -2031,6 +2034,9 @@ totem_action_zoom_relative (TotemObject *totem, double off_pct)
{
double zoom;
+ if (totem->bvw == NULL)
+ return;
+
zoom = bacon_video_widget_get_zoom (totem->bvw);
totem_action_zoom (totem, zoom + off_pct);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]