enum
{
PROP_0,
- V4L2_STD_OBJECT_PROPS
+ V4L2_STD_OBJECT_PROPS,
+ PROP_DISABLE_PASSTHROUGH
};
typedef struct
gst_v4l2_object_set_property_helper (self->v4l2capture, prop_id, value,
pspec);
break;
+ case PROP_DISABLE_PASSTHROUGH:
+ self->disable_passthrough = g_value_get_boolean (value);
+ break;
/* By default, only set on output */
default:
gst_v4l2_object_get_property_helper (self->v4l2capture, prop_id, value,
pspec);
break;
+ case PROP_DISABLE_PASSTHROUGH:
+ g_value_set_boolean (value, self->disable_passthrough);
+ break;
/* By default read from output */
default:
GstV4l2Error error = GST_V4L2_ERROR_INIT;
GstV4l2Transform *self = GST_V4L2_TRANSFORM (trans);
+ if (self->disable_passthrough)
+ gst_base_transform_set_passthrough (trans, FALSE);
+
if (self->incaps && self->outcaps) {
if (gst_caps_is_equal (incaps, self->incaps) &&
gst_caps_is_equal (outcaps, self->outcaps)) {
GST_DEBUG_FUNCPTR (gst_v4l2_transform_change_state);
gst_v4l2_object_install_m2m_properties_helper (gobject_class);
+
+ g_object_class_install_property (gobject_class, PROP_DISABLE_PASSTHROUGH,
+ g_param_spec_boolean ("disable-passthrough", "Disable Passthrough",
+ "Forces passing buffers through the converter", FALSE,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void