summaryrefslogtreecommitdiffstats
path: root/gst/vbidec/gstvbidec.c
diff options
context:
space:
mode:
authorDavid I. Lehn <dlehn@users.sourceforge.net>2003-01-09 05:26:47 +0000
committerDavid I. Lehn <dlehn@users.sourceforge.net>2003-01-09 05:26:47 +0000
commit562e0b2526c75e98dfe790dba5fa50a0be0a95d3 (patch)
tree6233e0ef2ffaa055b1f333c6f9fa526728c90180 /gst/vbidec/gstvbidec.c
parent762db341097fb275acaac5b9030d25d4c659b10b (diff)
downloadgst-plugins-bad-562e0b2526c75e98dfe790dba5fa50a0be0a95d3.tar.gz
gst-plugins-bad-562e0b2526c75e98dfe790dba5fa50a0be0a95d3.tar.bz2
gst-plugins-bad-562e0b2526c75e98dfe790dba5fa50a0be0a95d3.zip
add verbose decode support
Original commit message from CVS: add verbose decode support
Diffstat (limited to 'gst/vbidec/gstvbidec.c')
-rw-r--r--gst/vbidec/gstvbidec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/vbidec/gstvbidec.c b/gst/vbidec/gstvbidec.c
index 1da10543..1bd7c8bd 100644
--- a/gst/vbidec/gstvbidec.c
+++ b/gst/vbidec/gstvbidec.c
@@ -77,6 +77,7 @@ enum {
enum {
ARG_0,
+ ARG_VERBOSE,
ARG_CAPTION_TYPE,
ARG_DVD_INPUT
};
@@ -176,6 +177,9 @@ gst_vbidec_class_init(GstVBIDecClass *klass)
gobject_class->set_property = gst_vbidec_set_property;
gobject_class->get_property = gst_vbidec_get_property;
+ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VERBOSE,
+ g_param_spec_boolean ("verbose", "verbose", "verbose",
+ FALSE, G_PARAM_WRITABLE));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_CAPTION_TYPE,
g_param_spec_enum ("caption type", "caption type", "Closed Caption Type",
GST_TYPE_VBIDEC_CAPTION_TYPE_TYPE, CAPTURE_OFF, G_PARAM_READWRITE));
@@ -312,6 +316,10 @@ gst_vbidec_set_property (GObject *object, guint prop_id, const GValue *value, GP
vbidec = GST_VBIDEC (object);
switch (prop_id) {
+ case ARG_VERBOSE:
+ vbidata_set_verbose(vbidec->vbidata, g_value_get_boolean (value));
+ vbiscreen_set_verbose(vbidec->vbiscreen, g_value_get_boolean (value));
+ break;
case ARG_DVD_INPUT:
vbidec->dvd_input = g_value_get_boolean(value);
break;