From 7d63892298684c33808770e492399e1edc76734e Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Sat, 25 Mar 2006 11:59:29 +0000 Subject: - unregister the callback instead of disallowing the unload of the plugin Thanks to Thibaut for pointing that out CVS patchset: 7949 CVS date: 2006/03/25 11:59:29 --- src/input/input_mms.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input/input_mms.c b/src/input/input_mms.c index 6b640c0b7..7ba14765b 100644 --- a/src/input/input_mms.c +++ b/src/input/input_mms.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_mms.c,v 1.58 2006/03/24 16:40:54 hadess Exp $ + * $Id: input_mms.c,v 1.59 2006/03/25 11:59:29 hadess Exp $ * * mms input plugin based on work from major mms */ @@ -431,6 +431,8 @@ static const char *mms_class_get_identifier (input_class_t *this_gen) { static void mms_class_dispose (input_class_t *this_gen) { mms_input_class_t *this = (mms_input_class_t *) this_gen; + this->xine->config->unregister_callback(this->xine->config, + "media.network.bandwidth"); free (this); } @@ -477,6 +479,6 @@ static void *init_class (xine_t *xine, void *data) { plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_INPUT | PLUGIN_MUST_PRELOAD | PLUGIN_NO_UNLOAD, 17, "mms", XINE_VERSION_CODE, NULL, init_class }, + { PLUGIN_INPUT | PLUGIN_MUST_PRELOAD, 17, "mms", XINE_VERSION_CODE, NULL, init_class }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; -- cgit v1.2.3