diff src/vorbis/vorbis.c @ 1078:094fa3026e3d trunk

[svn] - vorbis: transition to plugin API v2
author nenolod
date Thu, 24 May 2007 16:14:36 -0700
parents 18dd1dd2d232
children c1e1c894fa0b
line wrap: on
line diff
--- a/src/vorbis/vorbis.c	Thu May 24 16:12:47 2007 -0700
+++ b/src/vorbis/vorbis.c	Thu May 24 16:14:36 2007 -0700
@@ -98,7 +98,7 @@
 InputPlugin vorbis_ip = {
     NULL,
     NULL,
-    NULL,                       /* description */
+    "Ogg Vorbis Audio Plugin",  /* description */
     vorbis_init,                /* init */
     vorbis_aboutbox,            /* aboutbox */
     vorbis_configure,           /* configure */
@@ -127,6 +127,10 @@
     vorbis_fmts,
 };
 
+InputPlugin *vorbis_iplist[] = { &vorbis_ip, NULL };
+
+DECLARE_PLUGIN(vorbis, NULL, NULL, vorbis_iplist, NULL, NULL, NULL, NULL);
+
 static OggVorbis_File vf;
 
 static GThread *thread;
@@ -138,13 +142,6 @@
 
 gchar **vorbis_tag_encoding_list = NULL;
 
-InputPlugin *
-get_iplugin_info(void)
-{
-    vorbis_ip.description = g_strdup_printf(_("Ogg Vorbis Audio Plugin"));
-    return &vorbis_ip;
-}
-
 static int
 vorbis_check_file(char *filename)
 {