changeset 1064:ea044f6279b9 trunk

[svn] - update wav plugin to plugin API v2
author nenolod
date Thu, 24 May 2007 12:02:58 -0700
parents 872a2f7d3f6e
children b3b02e58429f
files ChangeLog src/wav/wav.c
diffstat 2 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 03:35:01 2007 -0700
+++ b/ChangeLog	Thu May 24 12:02:58 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-24 10:35:01 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2292]
+  - port to plugin2 API
+  
+  trunk/src/wav/wav-sndfile.c |   12 +++++++++---
+  1 file changed, 9 insertions(+), 3 deletions(-)
+
+
 2007-05-24 09:12:43 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2290]
   - bump version of plugins and version requirements per plugin api v2
--- a/src/wav/wav.c	Thu May 24 03:35:01 2007 -0700
+++ b/src/wav/wav.c	Thu May 24 12:02:58 2007 -0700
@@ -38,7 +38,7 @@
 InputPlugin wav_ip = {
     NULL,
     NULL,
-    NULL,                       /* Description */
+    "WAV Audio Plugin",                       /* Description */
     wav_init,
     NULL,
     NULL,
@@ -72,12 +72,9 @@
 static GThread *decode_thread;
 static gboolean audio_error = FALSE;
 
-InputPlugin *
-get_iplugin_info(void)
-{
-    wav_ip.description = g_strdup_printf(_("WAV Audio Plugin"));
-    return &wav_ip;
-}
+InputPlugin *wav_iplist[] = { &wav_ip, NULL };
+
+DECLARE_PLUGIN(wav, NULL, NULL, wav_iplist, NULL, NULL, NULL, NULL);
 
 static void
 wav_init(void)