totem r5562 - in trunk: . src src/backend
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r5562 - in trunk: . src src/backend
- Date: Mon, 18 Aug 2008 10:08:05 +0000 (UTC)
Author: hadess
Date: Mon Aug 18 10:08:05 2008
New Revision: 5562
URL: http://svn.gnome.org/viewvc/totem?rev=5562&view=rev
Log:
2008-08-18 Bastien Nocera <hadess hadess net>
* src/backend/bacon-video-widget-gst-0.10.c
(bacon_video_widget_can_deinterlace):
* src/backend/bacon-video-widget-xine.c
(bacon_video_widget_can_deinterlace):
* src/backend/bacon-video-widget.h:
Add _can_deinterlace function to the backends
* src/totem.c (totem_callback_connect): Only show
the deinterlacing menu item if the backend supports it
(Helps: #491627)
Modified:
trunk/ChangeLog
trunk/src/backend/bacon-video-widget-gst-0.10.c
trunk/src/backend/bacon-video-widget-xine.c
trunk/src/backend/bacon-video-widget.h
trunk/src/totem.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 Mon Aug 18 10:08:05 2008
@@ -2246,6 +2246,12 @@
}
}
+gboolean
+bacon_video_widget_can_deinterlace (BaconVideoWidget *bvw)
+{
+ return FALSE;
+}
+
void
bacon_video_widget_set_deinterlacing (BaconVideoWidget * bvw,
gboolean deinterlace)
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 Mon Aug 18 10:08:05 2008
@@ -3128,6 +3128,12 @@
return entry.num_value;
}
+gboolean
+bacon_video_widget_can_deinterlace (BaconVideoWidget *bvw)
+{
+ return TRUE;
+}
+
void
bacon_video_widget_set_deinterlacing (BaconVideoWidget *bvw,
gboolean deinterlace)
Modified: trunk/src/backend/bacon-video-widget.h
==============================================================================
--- trunk/src/backend/bacon-video-widget.h (original)
+++ trunk/src/backend/bacon-video-widget.h Mon Aug 18 10:08:05 2008
@@ -244,6 +244,7 @@
BVW_RATIO_DVB = 4
} BaconVideoWidgetAspectRatio;
+gboolean bacon_video_widget_can_deinterlace (BaconVideoWidget *bvw);
void bacon_video_widget_set_deinterlacing (BaconVideoWidget *bvw,
gboolean deinterlace);
gboolean bacon_video_widget_get_deinterlacing (BaconVideoWidget *bvw);
Modified: trunk/src/totem.c
==============================================================================
--- trunk/src/totem.c (original)
+++ trunk/src/totem.c Mon Aug 18 10:08:05 2008
@@ -3090,6 +3090,8 @@
/* Menu items */
gtk_action_group_set_visible (totem->zoom_action_group,
bacon_video_widget_can_set_zoom (totem->bvw));
+ action = GTK_ACTION (gtk_builder_get_object (totem->xml, "deinterlace"));
+ gtk_action_set_visible (action, bacon_video_widget_can_deinterlace (totem->bvw));
action = gtk_action_group_get_action (totem->main_action_group, "repeat-mode");
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]