Blame ext/wavpack/gstwavpack.c

Packit 8ff292
/* GStreamer wavpack plugin
Packit 8ff292
 * (c) 2004 Arwed v. Merkatz <v.merkatz@gmx.net>
Packit 8ff292
 *
Packit 8ff292
 * gstwavpack.c: plugin loader
Packit 8ff292
 *
Packit 8ff292
 * This library is free software; you can redistribute it and/or
Packit 8ff292
 * modify it under the terms of the GNU Library General Public
Packit 8ff292
 * License as published by the Free Software Foundation; either
Packit 8ff292
 * version 2 of the License, or (at your option) any later version.
Packit 8ff292
 *
Packit 8ff292
 * This library is distributed in the hope that it will be useful,
Packit 8ff292
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8ff292
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8ff292
 * Library General Public License for more details.
Packit 8ff292
 *
Packit 8ff292
 * You should have received a copy of the GNU Library General Public
Packit 8ff292
 * License along with this library; if not, write to the
Packit 8ff292
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 8ff292
 * Boston, MA 02110-1301, USA.
Packit 8ff292
 */
Packit 8ff292
Packit 8ff292
#ifdef HAVE_CONFIG_H
Packit 8ff292
#include "config.h"
Packit 8ff292
#endif
Packit 8ff292
Packit 8ff292
#include <gst/gst-i18n-plugin.h>
Packit 8ff292
Packit 8ff292
#include "gstwavpackdec.h"
Packit 8ff292
#include "gstwavpackenc.h"
Packit 8ff292
Packit 8ff292
/* debug category for common code */
Packit 8ff292
GST_DEBUG_CATEGORY (wavpack_debug);
Packit 8ff292
Packit 8ff292
static gboolean
Packit 8ff292
plugin_init (GstPlugin * plugin)
Packit 8ff292
{
Packit 8ff292
  GST_DEBUG_CATEGORY_INIT (wavpack_debug, "wavpack", 0, "Wavpack elements");
Packit 8ff292
Packit 8ff292
#ifdef ENABLE_NLS
Packit 8ff292
  GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
Packit 8ff292
      LOCALEDIR);
Packit 8ff292
  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
Packit 8ff292
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
Packit 8ff292
#endif
Packit 8ff292
Packit 8ff292
  return (gst_wavpack_dec_plugin_init (plugin)
Packit 8ff292
      && gst_wavpack_enc_plugin_init (plugin));
Packit 8ff292
}
Packit 8ff292
Packit 8ff292
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Packit 8ff292
    GST_VERSION_MINOR,
Packit 8ff292
    wavpack,
Packit 8ff292
    "Wavpack lossless/lossy audio format handling",
Packit 8ff292
    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)