X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fjackrack%2Fplugin_settings.c;h=7284b803bcd84343f022fb4b48c7253b62fb5195;hb=ee523db03a44cbda4b5def55e0c36427ab6a0747;hp=68c277c3dbba9857ba543aa9a9541cde53e9f1ea;hpb=b7241ba1f8be71fd66d670436db163957508eaab;p=melted diff --git a/src/modules/jackrack/plugin_settings.c b/src/modules/jackrack/plugin_settings.c index 68c277c..7284b80 100644 --- a/src/modules/jackrack/plugin_settings.c +++ b/src/modules/jackrack/plugin_settings.c @@ -1,21 +1,26 @@ /* - * JACK Rack - * - * Copyright (C) Robert Ham 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 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * 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 + * + * 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. */ #define _GNU_SOURCE @@ -320,7 +325,7 @@ settings_get_control_value (settings_t * settings, guint copy, unsigned long con gboolean settings_get_lock (const settings_t * settings, unsigned long control_index) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, FALSE); return settings->locks[control_index]; } @@ -328,7 +333,7 @@ settings_get_lock (const settings_t * settings, unsigned long control_i gboolean settings_get_lock_all (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, FALSE); return settings->lock_all; } @@ -336,7 +341,7 @@ settings_get_lock_all (const settings_t * settings) gboolean settings_get_enabled (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, FALSE); return settings->enabled; } @@ -344,7 +349,7 @@ settings_get_enabled (const settings_t * settings) guint settings_get_copies (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, 0); return settings->copies; } @@ -353,7 +358,7 @@ settings_get_copies (const settings_t * settings) unsigned long settings_get_channels (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, 0); return settings->channels; } @@ -361,7 +366,7 @@ settings_get_channels (const settings_t * settings) gboolean settings_get_wet_dry_enabled (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, FALSE); return settings->wet_dry_enabled; } @@ -369,7 +374,7 @@ settings_get_wet_dry_enabled (const settings_t * settings) gboolean settings_get_wet_dry_locked (const settings_t * settings) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, FALSE); return settings->wet_dry_locked; } @@ -377,7 +382,7 @@ settings_get_wet_dry_locked (const settings_t * settings) LADSPA_Data settings_get_wet_dry_value (settings_t * settings, unsigned long channel) { - g_return_if_fail (settings != NULL); + g_return_val_if_fail (settings != NULL, NAN); if (channel >= settings->channels) settings_set_channels (settings, channel + 1);