changeset 1566:e513069caf71 trunk

[svn] - pls and m3u is now fully modular
author nenolod
date Thu, 10 Aug 2006 20:44:47 -0700
parents 88c0aabb4286
children bbc9d6fad927
files ChangeLog audacious/main.c audacious/pluginenum.c
diffstat 3 files changed, 18 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Aug 10 20:41:43 2006 -0700
+++ b/ChangeLog	Thu Aug 10 20:44:47 2006 -0700
@@ -1,3 +1,14 @@
+2006-08-11 03:41:43 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2044]
+  - remove static version
+  
+
+  Changes:        Modified:
+  +0 -2           trunk/audacious/Makefile  
+  +0 -195         trunk/audacious/playlist_m3u.c  
+  +0 -107         trunk/audacious/playlist_pls.c  
+
+
 2006-08-11 03:39:18 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2042]
   - m3u and pls plugin implementation
--- a/audacious/main.c	Thu Aug 10 20:41:43 2006 -0700
+++ b/audacious/main.c	Thu Aug 10 20:44:47 2006 -0700
@@ -96,10 +96,6 @@
     gchar *previous_session_id;
 };
 
-/* XXX -nenolod */
-extern void temporary_pls_register(void);
-extern void temporary_m3u_register(void);
-
 typedef struct _BmpCmdLineOpt BmpCmdLineOpt;
 
 BmpCmdLineOpt options;
@@ -1078,9 +1074,6 @@
         GDK_THREADS_ENTER();
     }
 
-    temporary_pls_register();
-    temporary_m3u_register();
-
     plugin_system_init();
 
     playlist_load(bmp_paths[BMP_PATH_PLAYLIST_FILE]);
--- a/audacious/pluginenum.c	Thu Aug 10 20:41:43 2006 -0700
+++ b/audacious/pluginenum.c	Thu Aug 10 20:44:47 2006 -0700
@@ -262,6 +262,7 @@
     GList *node;
     OutputPlugin *op;
     InputPlugin *ip;
+    LowlevelPlugin *lp;
     gint dirsel = 0, i = 0;
 
     if (!g_module_supported()) {
@@ -343,6 +344,12 @@
             ip->init();
     }
 
+    for (node = lowlevel_list; node; node = g_list_next(node)) {
+        lp = LOWLEVEL_PLUGIN(node->data);
+        if (lp->init)
+            lp->init();
+    }
+
     if (cfg.disabled_iplugins) {
         disabled = g_strsplit(cfg.disabled_iplugins, ":", 0);
         while (disabled[i]) {