totem r5912 - in trunk: . src/backend



Author: hadess
Date: Tue Jan 13 11:38:01 2009
New Revision: 5912
URL: http://svn.gnome.org/viewvc/totem?rev=5912&view=rev

Log:
2009-01-13  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-gst-0.10.c
	(bacon_video_widget_set_video_property):
	* src/backend/bacon-video-widget-xine.c
	(bacon_video_widget_set_video_property): Patch from
	Anssi Hannula <anssi mandriva org> to avoid
	reseting the colour balance sliders when they're
	at the maximum or minimum (Closes: #567279)



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

Modified: trunk/src/backend/bacon-video-widget-gst-0.10.c
==============================================================================
--- trunk/src/backend/bacon-video-widget-gst-0.10.c	(original)
+++ trunk/src/backend/bacon-video-widget-gst-0.10.c	Tue Jan 13 11:38:01 2009
@@ -3693,7 +3693,7 @@
   
   GST_DEBUG ("set video property type %d to value %d", type, value);
   
-  if ( !(value < 65535 && value > 0) )
+  if ( !(value <= 65535 && value >= 0) )
     return;
 
   if (bvw->priv->balance && GST_IS_COLOR_BALANCE (bvw->priv->balance))

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	Tue Jan 13 11:38:01 2009
@@ -3672,7 +3672,7 @@
 	g_return_if_fail (BACON_IS_VIDEO_WIDGET (bvw));
 	g_return_if_fail (bvw->priv->xine != NULL);
 
-	if ( !(value < 65535 && value > 0) )
+	if ( !(value <= 65535 && value >= 0) )
 		return;
 
 	xine_set_param (bvw->priv->stream, video_props[type], value);



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