Cleanup copyrights and attributions, and move Jean-Baptiste's services to a new kdenl...
[melted] / src / modules / jackrack / plugin_desc.c
index 1dfea31..b325989 100644 (file)
@@ -1,20 +1,26 @@
 /*
- *   JACK Rack
- *    
- *   Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
- *    
- *   This program is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
+ * JACK Rack
  *
- *   This program is distributed in the hope that it will be useful,
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   GNU General Public License for more details.
+ * Original:
+ * Copyright (C) Robert Ham 2002, 2003 (node@users.sourceforge.net)
  *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
- *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Modification for MLT:
+ * Copyright (C) 2004 Ushodaya Enterprises Limited
+ * Author: Dan Dennedy <dan@dennedy.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
 #include <math.h>
@@ -163,7 +169,7 @@ plugin_desc_add_audio_port_index (unsigned long ** indicies,
 {
   (*current_port_count)++;
   
-  if (*current_port_count == 1)
+  if (*current_port_count == 0)
     *indicies = g_malloc (sizeof (unsigned long) * *current_port_count);
   else
     *indicies = g_realloc (*indicies, sizeof (unsigned long) * *current_port_count);
@@ -193,7 +199,7 @@ plugin_desc_set_port_counts (plugin_desc_t * pd)
             continue;
             
           pd->control_port_count++;
-          if (pd->control_port_count == 1)
+          if (pd->control_port_count == 0)
             pd->control_port_indicies = g_malloc (sizeof (unsigned long) * pd->control_port_count);
           else
             pd->control_port_indicies = g_realloc (pd->control_port_indicies,
@@ -210,7 +216,7 @@ plugin_desc_set_port_counts (plugin_desc_t * pd)
       unsigned long ** port_indicies;
       unsigned long port_count;
       unsigned long i, j;
-      
+     
       if (icount > ocount)
         {
           pd->channels = ocount;