From 7328c5469819d795eb72ff6da056696a367131a7 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 28 Jan 2007 17:35:13 +0000 Subject: ext/ladspa/: add GstController support to ladspa Original commit message from CVS: * ext/ladspa/Makefile.am: * ext/ladspa/gstladspa.c: (gst_ladspa_class_get_param_spec): add GstController support to ladspa --- ext/ladspa/gstladspa.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ext/ladspa/gstladspa.c') diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index c256105b..317c7fd3 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -1,6 +1,6 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen - * <2001> Steve Baker + * Copyright (C) 1999 Erik Walthinsen + * 2001 Steve Baker * 2003 Andy Wingo * * This library is free software; you can redistribute it and/or @@ -25,6 +25,7 @@ #include #include #include +#include #include "gstladspa.h" #include /* main ladspa sdk include file */ @@ -195,6 +196,8 @@ gst_ladspa_class_get_param_spec (GstLADSPAClass * klass, gint portnum) perms = G_PARAM_READABLE; if (LADSPA_IS_PORT_INPUT (desc->PortDescriptors[portnum])) perms |= G_PARAM_WRITABLE | G_PARAM_CONSTRUCT; + if (LADSPA_IS_PORT_CONTROL (desc->PortDescriptors[portnum])) + perms |= GST_PARAM_CONTROLLABLE; /* short name for hint descriptor */ hintdesc = desc->PortRangeHints[portnum].HintDescriptor; -- cgit v1.2.1