totem r5186 - in trunk: . src/backend



Author: hadess
Date: Wed Feb 27 21:53:39 2008
New Revision: 5186
URL: http://svn.gnome.org/viewvc/totem?rev=5186&view=rev

Log:
2008-02-27  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-xine.c (load_video_out_driver):
	Work around broken multi-head support in the xine-lib backend
	(Helps: #399220)



Modified:
   trunk/ChangeLog
   trunk/src/backend/bacon-video-widget-xine.c

Modified: trunk/src/backend/bacon-video-widget-xine.c
==============================================================================
--- trunk/src/backend/bacon-video-widget-xine.c	(original)
+++ trunk/src/backend/bacon-video-widget-xine.c	Wed Feb 27 21:53:39 2008
@@ -666,7 +666,13 @@
 	res_v = (DisplayHeight (bvw->priv->display, bvw->priv->screen) * 1000 /
 			DisplayHeightMM (bvw->priv->display,
 				bvw->priv->screen));
-	bvw->priv->display_ratio = res_v / res_h;
+
+	/* FIXME this should be fixed with proper multi-head handling in
+	 * the xine-lib backend */
+	if (res_h == 0 || res_v == 0)
+		bvw->priv->display_ratio = 1.0;
+	else
+		bvw->priv->display_ratio = res_v / res_h;
 
 	if (fabs (bvw->priv->display_ratio - 1.0) < 0.01) {
 		bvw->priv->display_ratio = 1.0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]