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"
|
2003-12-07 21:40:11 +00:00
|
|
|
#include "gstflactag.h"
|
2001-12-23 14:15:30 +00:00
|
|
|
|
2002-09-18 20:56:42 +00:00
|
|
|
#include "flac_compat.h"
|
|
|
|
|
2001-12-23 14:15:30 +00:00
|
|
|
static gboolean
|
2003-11-01 15:46:35 +00:00
|
|
|
plugin_init (GstPlugin *plugin)
|
2001-12-23 14:15:30 +00:00
|
|
|
{
|
2003-10-28 20:52:41 +00:00
|
|
|
if (!gst_library_load ("gstbytestream"))
|
|
|
|
return FALSE;
|
|
|
|
|
2003-11-28 13:04:21 +00:00
|
|
|
/* we need the gsttags plugin for metadata querying */
|
|
|
|
if (!gst_plugin_load ("gsttags"))
|
|
|
|
return FALSE;
|
|
|
|
|
2003-11-01 15:46:35 +00:00
|
|
|
if (!gst_element_register (plugin, "flacenc", GST_RANK_NONE, GST_TYPE_FLACENC))
|
|
|
|
return FALSE;
|
2001-12-23 14:15:30 +00:00
|
|
|
|
2003-11-01 15:46:35 +00:00
|
|
|
if (!gst_element_register (plugin, "flacdec", GST_RANK_PRIMARY, GST_TYPE_FLACDEC))
|
|
|
|
return FALSE;
|
2004-01-31 10:25:05 +00:00
|
|
|
|
2003-12-07 21:40:11 +00:00
|
|
|
if (!gst_element_register (plugin, "flactag", GST_RANK_PRIMARY, gst_flac_tag_get_type ()))
|
|
|
|
return FALSE;
|
2001-12-23 14:15:30 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2003-11-01 15:46:35 +00:00
|
|
|
GST_PLUGIN_DEFINE (
|
2001-12-23 14:15:30 +00:00
|
|
|
GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
|
|
|
"flac",
|
2003-11-01 15:46:35 +00:00
|
|
|
"The FLAC Lossless compressor Codec",
|
|
|
|
plugin_init,
|
|
|
|
VERSION,
|
|
|
|
"LGPL",
|
|
|
|
GST_PACKAGE,
|
|
|
|
GST_ORIGIN)
|