flacenc: Properly register type
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 13 Oct 2011 15:12:23 +0000 (17:12 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 13 Oct 2011 15:12:23 +0000 (17:12 +0200)
It's a subclass of GstAudioEncoder and not of GstElement

ext/flac/gstflacenc.c

index 026989d..6191ed5 100644 (file)
@@ -150,7 +150,7 @@ GST_DEBUG_CATEGORY_STATIC (flacenc_debug);
 #define GST_CAT_DEFAULT flacenc_debug
 
 #define gst_flac_enc_parent_class parent_class
-G_DEFINE_TYPE_WITH_CODE (GstFlacEnc, gst_flac_enc, GST_TYPE_ELEMENT,
+G_DEFINE_TYPE_WITH_CODE (GstFlacEnc, gst_flac_enc, GST_TYPE_AUDIO_ENCODER,
     G_IMPLEMENT_INTERFACE (GST_TYPE_TAG_SETTER, NULL));
 
 static gboolean gst_flac_enc_start (GstAudioEncoder * enc);