comparison audacious/pluginenum.c @ 686:a1806a3cf3d2 trunk

[svn] Remove libvisual-proxy. It is broken and hard to repair. A written-from-scratch replacement is planned but will be a while.
author chainsaw
date Sat, 25 Feb 2006 09:35:27 -0800
parents 980d651da2fc
children 0a220c3183b8
comparison
equal deleted inserted replaced
685:147e844e16cb 686:a1806a3cf3d2
27 27
28 #include <glib.h> 28 #include <glib.h>
29 #include <gmodule.h> 29 #include <gmodule.h>
30 #include <glib/gprintf.h> 30 #include <glib/gprintf.h>
31 #include <string.h> 31 #include <string.h>
32 #include <stdio.h>
32 33
33 #include "controlsocket.h" 34 #include "controlsocket.h"
34 #include "main.h" 35 #include "main.h"
35 #include "playback.h" 36 #include "playback.h"
36 #include "playlist.h" 37 #include "playlist.h"
362 bmp_playback_stop(); 363 bmp_playback_stop();
363 364
364 for (node = get_input_list(); node; node = g_list_next(node)) { 365 for (node = get_input_list(); node; node = g_list_next(node)) {
365 ip = INPUT_PLUGIN(node->data); 366 ip = INPUT_PLUGIN(node->data);
366 if (ip && ip->cleanup) { 367 if (ip && ip->cleanup) {
368 printf("Cleaning up input plugin %s\n", ip->filename);
367 ip->cleanup(); 369 ip->cleanup();
368 GDK_THREADS_LEAVE(); 370 GDK_THREADS_LEAVE();
369 while (g_main_iteration(FALSE)); 371 while (g_main_iteration(FALSE));
370 GDK_THREADS_ENTER(); 372 GDK_THREADS_ENTER();
371 } 373 }
376 g_list_free(ip_data.input_list); 378 g_list_free(ip_data.input_list);
377 379
378 for (node = get_output_list(); node; node = g_list_next(node)) { 380 for (node = get_output_list(); node; node = g_list_next(node)) {
379 op = OUTPUT_PLUGIN(node->data); 381 op = OUTPUT_PLUGIN(node->data);
380 if (op && op->cleanup) { 382 if (op && op->cleanup) {
383 printf("Cleaning up output plugin %s\n", op->filename);
381 op->cleanup(); 384 op->cleanup();
382 GDK_THREADS_LEAVE(); 385 GDK_THREADS_LEAVE();
383 while (g_main_iteration(FALSE)); 386 while (g_main_iteration(FALSE));
384 GDK_THREADS_ENTER(); 387 GDK_THREADS_ENTER();
385 } 388 }
390 g_list_free(op_data.output_list); 393 g_list_free(op_data.output_list);
391 394
392 for (node = get_effect_list(); node; node = g_list_next(node)) { 395 for (node = get_effect_list(); node; node = g_list_next(node)) {
393 ep = EFFECT_PLUGIN(node->data); 396 ep = EFFECT_PLUGIN(node->data);
394 if (ep && ep->cleanup) { 397 if (ep && ep->cleanup) {
398 printf("Cleaning up effect plugin %s\n", ep->filename);
395 ep->cleanup(); 399 ep->cleanup();
396 GDK_THREADS_LEAVE(); 400 GDK_THREADS_LEAVE();
397 while (g_main_iteration(FALSE)); 401 while (g_main_iteration(FALSE));
398 GDK_THREADS_ENTER(); 402 GDK_THREADS_ENTER();
399 } 403 }
416 GDK_THREADS_ENTER(); 420 GDK_THREADS_ENTER();
417 421
418 for (node = get_general_list(); node; node = g_list_next(node)) { 422 for (node = get_general_list(); node; node = g_list_next(node)) {
419 gp = GENERAL_PLUGIN(node->data); 423 gp = GENERAL_PLUGIN(node->data);
420 if (gp && gp->cleanup) { 424 if (gp && gp->cleanup) {
425 printf("Cleaning up general plugin %s\n", gp->filename);
421 gp->cleanup(); 426 gp->cleanup();
422 GDK_THREADS_LEAVE(); 427 GDK_THREADS_LEAVE();
423 while (g_main_iteration(FALSE)); 428 while (g_main_iteration(FALSE));
424 GDK_THREADS_ENTER(); 429 GDK_THREADS_ENTER();
425 } 430 }
442 GDK_THREADS_ENTER(); 447 GDK_THREADS_ENTER();
443 448
444 for (node = get_vis_list(); node; node = g_list_next(node)) { 449 for (node = get_vis_list(); node; node = g_list_next(node)) {
445 vp = VIS_PLUGIN(node->data); 450 vp = VIS_PLUGIN(node->data);
446 if (vp && vp->cleanup) { 451 if (vp && vp->cleanup) {
452 printf("Cleaning up visualisation plugin %s\n", vp->filename);
447 vp->cleanup(); 453 vp->cleanup();
448 GDK_THREADS_LEAVE(); 454 GDK_THREADS_LEAVE();
449 while (g_main_iteration(FALSE)); 455 while (g_main_iteration(FALSE));
450 GDK_THREADS_ENTER(); 456 GDK_THREADS_ENTER();
451 } 457 }