2002-03-20 21:45:03 +00:00
|
|
|
/* GStreamer
|
2001-12-23 14:15:30 +00:00
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2003-11-07 12:47:01 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2001-12-23 14:15:30 +00:00
|
|
|
|
|
|
|
#include "gstflacenc.h"
|
|
|
|
#include "gstflacdec.h"
|
2008-08-06 15:34:55 +00:00
|
|
|
#include "gstflactag.h"
|
2001-12-23 14:15:30 +00:00
|
|
|
|
2006-02-08 17:12:40 +00:00
|
|
|
#include <gst/tag/tag.h>
|
2007-05-02 18:01:52 +00:00
|
|
|
#include <gst/gst-i18n-plugin.h>
|
2006-02-08 17:12:40 +00:00
|
|
|
|
2001-12-23 14:15:30 +00:00
|
|
|
static gboolean
|
2004-03-14 22:34:33 +00:00
|
|
|
plugin_init (GstPlugin * plugin)
|
2001-12-23 14:15:30 +00:00
|
|
|
{
|
2007-05-02 18:01:52 +00:00
|
|
|
#if ENABLE_NLS
|
|
|
|
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
|
|
|
LOCALEDIR);
|
|
|
|
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
2008-08-07 16:11:00 +00:00
|
|
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
2007-05-02 18:01:52 +00:00
|
|
|
#endif
|
|
|
|
|
2009-05-07 17:10:08 +00:00
|
|
|
if (!gst_element_register (plugin, "flacenc", GST_RANK_PRIMARY,
|
2005-12-09 19:51:03 +00:00
|
|
|
GST_TYPE_FLAC_ENC))
|
2003-11-01 15:46:35 +00:00
|
|
|
return FALSE;
|
2004-03-14 22:34:33 +00:00
|
|
|
if (!gst_element_register (plugin, "flacdec", GST_RANK_PRIMARY,
|
2005-12-09 19:51:03 +00:00
|
|
|
GST_TYPE_FLAC_DEC))
|
2003-11-01 15:46:35 +00:00
|
|
|
return FALSE;
|
2004-03-14 22:34:33 +00:00
|
|
|
if (!gst_element_register (plugin, "flactag", GST_RANK_PRIMARY,
|
2004-03-15 19:32:27 +00:00
|
|
|
gst_flac_tag_get_type ()))
|
2003-12-07 21:40:11 +00:00
|
|
|
return FALSE;
|
2006-02-08 17:12:40 +00:00
|
|
|
|
|
|
|
gst_tag_register_musicbrainz_tags ();
|
|
|
|
|
2001-12-23 14:15:30 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"flac",
|
|
|
|
"The FLAC Lossless compressor Codec",
|
2005-11-14 02:13:35 +00:00
|
|
|
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|