[totem/gsettings: 3/20] Add a deinterlacing property to BaconVideoWidget
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gsettings: 3/20] Add a deinterlacing property to BaconVideoWidget
- Date: Sat, 21 Aug 2010 19:34:23 +0000 (UTC)
commit 523d60625885917886715013b2a836fc35f1b9f7
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Aug 18 23:06:33 2010 +0100
Add a deinterlacing property to BaconVideoWidget
src/backend/bacon-video-widget-gst-0.10.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index dbefeb5..413da84 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -135,7 +135,8 @@ enum
PROP_USER_AGENT,
PROP_VOLUME,
PROP_DOWNLOAD_FILENAME,
- PROP_AUTO_RESIZE
+ PROP_AUTO_RESIZE,
+ PROP_DEINTERLACING
};
static const gchar *video_props_str[4] = {
@@ -1155,6 +1156,17 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
+ /**
+ * BaconVideoWidget:deinterlacing:
+ *
+ * Whether to automatically deinterlace videos.
+ **/
+ g_object_class_install_property (object_class, PROP_DEINTERLACING,
+ g_param_spec_boolean ("deinterlacing", NULL,
+ NULL, FALSE,
+ G_PARAM_READWRITE |
+ G_PARAM_STATIC_STRINGS));
+
/* Signals */
/**
* BaconVideoWidget::error:
@@ -2800,6 +2812,9 @@ bacon_video_widget_set_property (GObject * object, guint property_id,
case PROP_AUTO_RESIZE:
bacon_video_widget_set_auto_resize (bvw, g_value_get_boolean (value));
break;
+ case PROP_DEINTERLACING:
+ bacon_video_widget_set_deinterlacing (bvw, g_value_get_boolean (value));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -2853,6 +2868,9 @@ bacon_video_widget_get_property (GObject * object, guint property_id,
case PROP_AUTO_RESIZE:
g_value_set_boolean (value, bvw->priv->auto_resize);
break;
+ case PROP_DEINTERLACING:
+ g_value_set_boolean (value, bacon_video_widget_get_deinterlacing (bvw));
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -3256,6 +3274,8 @@ bacon_video_widget_set_deinterlacing (BaconVideoWidget * bvw,
else
flags &= ~GST_PLAY_FLAG_DEINTERLACE;
g_object_set (bvw->priv->play, "flags", flags, NULL);
+
+ g_object_notify (G_OBJECT (bvw), "deinterlacing");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]