diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2007-01-28 17:35:13 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2007-01-28 17:35:13 +0000 |
commit | 7328c5469819d795eb72ff6da056696a367131a7 (patch) | |
tree | 9a8870a635af5fed9c745dccffa3e5ba971db685 /ext/ladspa/gstladspa.c | |
parent | d0b9ec1252d36cebbdd96b858c6e30892eb90527 (diff) | |
download | gst-plugins-bad-7328c5469819d795eb72ff6da056696a367131a7.tar.gz gst-plugins-bad-7328c5469819d795eb72ff6da056696a367131a7.tar.bz2 gst-plugins-bad-7328c5469819d795eb72ff6da056696a367131a7.zip |
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
Diffstat (limited to 'ext/ladspa/gstladspa.c')
-rw-r--r-- | ext/ladspa/gstladspa.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 <omega@cse.ogi.edu> - * <2001> Steve Baker <stevebaker_org@yahoo.co.uk> + * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu> + * 2001 Steve Baker <stevebaker_org@yahoo.co.uk> * 2003 Andy Wingo <wingo at pobox.com> * * This library is free software; you can redistribute it and/or @@ -25,6 +25,7 @@ #include <string.h> #include <math.h> #include <gst/audio/audio.h> +#include <gst/controller/gstcontroller.h> #include "gstladspa.h" #include <ladspa.h> /* 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; |