amrwbenc: use different element GType name to avoid conflict with previous plugin
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Aug 2009 17:16:15 +0000 (18:16 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 24 Aug 2009 17:20:32 +0000 (18:20 +0100)
Use a different GType name for the element to avoid 'cannot register existing type'
warnings when running 'make check' in the unpacked tarball with the old amrwb plugin
also installed as system plugin under the old name (it used to be called 'amrwrb'
and now it's 'amrwbenc').

ext/amrwbenc/gstamrwbenc.c

index 3b46d3e..f9587cc 100644 (file)
@@ -73,7 +73,7 @@ gst_amrwbenc_bandmode_get_type ()
   };
   if (!gst_amrwbenc_bandmode_type) {
     gst_amrwbenc_bandmode_type =
-        g_enum_register_static ("GstAmrwbEncBandMode", gst_amrwbenc_bandmode);
+        g_enum_register_static ("GstAmrWbEncBandMode", gst_amrwbenc_bandmode);
   }
   return gst_amrwbenc_bandmode_type;
 }
@@ -132,7 +132,10 @@ _do_init (GType object_type)
       "AMR-WB audio encoder");
 }
 
-GST_BOILERPLATE_FULL (GstAmrwbEnc, gst_amrwbenc, GstElement, GST_TYPE_ELEMENT,
+#define GstAmrWbEnc GstAmrwbEnc
+#define GstAmrWbEncClass GstAmrwbEncClass
+
+GST_BOILERPLATE_FULL (GstAmrWbEnc, gst_amrwbenc, GstElement, GST_TYPE_ELEMENT,
     _do_init);
 
 static void