Blame ext/opus/gstopus.c

Packit 0652a1
/* GStreamer
Packit 0652a1
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
Packit 0652a1
 * Copyright (C) <2008> Sebastian Dröge <sebastian.droege@collabora.co.uk>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
#ifdef HAVE_CONFIG_H
Packit 0652a1
#include <config.h>
Packit 0652a1
#endif
Packit 0652a1
Packit 0652a1
#include "gstopusdec.h"
Packit 0652a1
#include "gstopusenc.h"
Packit 0652a1
Packit 0652a1
#include <gst/tag/tag.h>
Packit 0652a1
Packit 0652a1
static gboolean
Packit 0652a1
plugin_init (GstPlugin * plugin)
Packit 0652a1
{
Packit 0652a1
Packit 0652a1
  if (!gst_element_register (plugin, "opusenc", GST_RANK_PRIMARY,
Packit 0652a1
          GST_TYPE_OPUS_ENC))
Packit 0652a1
    return FALSE;
Packit 0652a1
Packit 0652a1
  if (!gst_element_register (plugin, "opusdec", GST_RANK_PRIMARY,
Packit 0652a1
          GST_TYPE_OPUS_DEC))
Packit 0652a1
    return FALSE;
Packit 0652a1
Packit 0652a1
  gst_tag_register_musicbrainz_tags ();
Packit 0652a1
Packit 0652a1
  return TRUE;
Packit 0652a1
}
Packit 0652a1
Packit 0652a1
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Packit 0652a1
    GST_VERSION_MINOR,
Packit 0652a1
    opus,
Packit 0652a1
    "OPUS plugin library",
Packit 0652a1
    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)