comparison audacious/pluginenum.c @ 2079:78002535143b trunk

[svn] remove plugin-reactivation loops for general and visualization plugins in plugin_system_cleanup(). it occasionally had prevented plugins' own cleanup routines working correctly.
author yaz
date Mon, 11 Dec 2006 02:17:12 -0800
parents 94a720c9bfef
children 425963ded156
comparison
equal deleted inserted replaced
2078:6ce74d8d2dee 2079:78002535143b
428 } 428 }
429 429
430 if (ep_data.effect_list) 430 if (ep_data.effect_list)
431 g_list_free(ep_data.effect_list); 431 g_list_free(ep_data.effect_list);
432 432
433 #if 0
433 for (node = get_general_enabled_list(); node; node = g_list_next(node)) { 434 for (node = get_general_enabled_list(); node; node = g_list_next(node)) {
434 gp = GENERAL_PLUGIN(node->data); 435 gp = GENERAL_PLUGIN(node->data);
435 enable_general_plugin(g_list_index(gp_data.general_list, gp), FALSE); 436 enable_general_plugin(g_list_index(gp_data.general_list, gp), FALSE);
436 } 437 }
437 438
439 g_list_free(gp_data.enabled_list); 440 g_list_free(gp_data.enabled_list);
440 441
441 GDK_THREADS_LEAVE(); 442 GDK_THREADS_LEAVE();
442 while (g_main_iteration(FALSE)); 443 while (g_main_iteration(FALSE));
443 GDK_THREADS_ENTER(); 444 GDK_THREADS_ENTER();
445 #endif
444 446
445 for (node = get_general_list(); node; node = g_list_next(node)) { 447 for (node = get_general_list(); node; node = g_list_next(node)) {
446 gp = GENERAL_PLUGIN(node->data); 448 gp = GENERAL_PLUGIN(node->data);
447 if (gp && gp->cleanup) { 449 if (gp && gp->cleanup) {
448 gp->cleanup(); 450 gp->cleanup();
454 } 456 }
455 457
456 if (gp_data.general_list) 458 if (gp_data.general_list)
457 g_list_free(gp_data.general_list); 459 g_list_free(gp_data.general_list);
458 460
461 #if 0
459 for (node = get_vis_enabled_list(); node; node = g_list_next(node)) { 462 for (node = get_vis_enabled_list(); node; node = g_list_next(node)) {
460 vp = VIS_PLUGIN(node->data); 463 vp = VIS_PLUGIN(node->data);
461 enable_vis_plugin(g_list_index(vp_data.vis_list, vp), FALSE); 464 enable_vis_plugin(g_list_index(vp_data.vis_list, vp), FALSE);
462 } 465 }
463 466
465 g_list_free(vp_data.enabled_list); 468 g_list_free(vp_data.enabled_list);
466 469
467 GDK_THREADS_LEAVE(); 470 GDK_THREADS_LEAVE();
468 while (g_main_iteration(FALSE)); 471 while (g_main_iteration(FALSE));
469 GDK_THREADS_ENTER(); 472 GDK_THREADS_ENTER();
473 #endif
470 474
471 for (node = get_vis_list(); node; node = g_list_next(node)) { 475 for (node = get_vis_list(); node; node = g_list_next(node)) {
472 vp = VIS_PLUGIN(node->data); 476 vp = VIS_PLUGIN(node->data);
473 if (vp && vp->cleanup) { 477 if (vp && vp->cleanup) {
474 vp->cleanup(); 478 vp->cleanup();