gst_plugins_good/gst/mpegaudioparse/plugin.c
author hgs
Fri, 14 May 2010 18:43:44 -0500
changeset 20 7e3786c5ed27
permissions -rw-r--r--
201019
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20
hgs
parents:
diff changeset
     1
/* GStreamer
hgs
parents:
diff changeset
     2
 * Copyright (C) <2008> Jan Schmidt <jan.schmidt@sun.com>
hgs
parents:
diff changeset
     3
 *
hgs
parents:
diff changeset
     4
 * This library is free software; you can redistribute it and/or
hgs
parents:
diff changeset
     5
 * modify it under the terms of the GNU Library General Public
hgs
parents:
diff changeset
     6
 * License as published by the Free Software Foundation; either
hgs
parents:
diff changeset
     7
 * version 2 of the License, or (at your option) any later version.
hgs
parents:
diff changeset
     8
 *
hgs
parents:
diff changeset
     9
 * This library is distributed in the hope that it will be useful,
hgs
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
hgs
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
hgs
parents:
diff changeset
    12
 * Library General Public License for more details.
hgs
parents:
diff changeset
    13
 *
hgs
parents:
diff changeset
    14
 * You should have received a copy of the GNU Library General Public
hgs
parents:
diff changeset
    15
 * License along with this library; if not, write to the
hgs
parents:
diff changeset
    16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
hgs
parents:
diff changeset
    17
 * Boston, MA 02111-1307, USA.
hgs
parents:
diff changeset
    18
 */
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#ifdef HAVE_CONFIG_H
hgs
parents:
diff changeset
    21
#include "../../config.h"
hgs
parents:
diff changeset
    22
#endif
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include <gst/gst.h>
hgs
parents:
diff changeset
    25
#include "gstmpegaudioparse.h"
hgs
parents:
diff changeset
    26
#include "gstxingmux.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
static gboolean
hgs
parents:
diff changeset
    29
plugin_init (GstPlugin * plugin)
hgs
parents:
diff changeset
    30
{
hgs
parents:
diff changeset
    31
  if (!gst_element_register (plugin, "xingmux", GST_RANK_NONE,
hgs
parents:
diff changeset
    32
          GST_TYPE_XING_MUX))
hgs
parents:
diff changeset
    33
    return FALSE;
hgs
parents:
diff changeset
    34
  if (!gst_element_register (plugin, "mp3parse", GST_RANK_PRIMARY + 1,
hgs
parents:
diff changeset
    35
          GST_TYPE_MP3PARSE))
hgs
parents:
diff changeset
    36
    return FALSE;
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
  return TRUE;
hgs
parents:
diff changeset
    39
}
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
hgs
parents:
diff changeset
    42
    GST_VERSION_MINOR,
hgs
parents:
diff changeset
    43
    "mpegaudioparse",
hgs
parents:
diff changeset
    44
    "MPEG-1 layer 1/2/3 audio stream elements",
hgs
parents:
diff changeset
    45
    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
hgs
parents:
diff changeset
    46
EXPORT_C GstPluginDesc* _GST_PLUGIN_DESC()
hgs
parents:
diff changeset
    47
{
hgs
parents:
diff changeset
    48
    return &gst_plugin_desc;
hgs
parents:
diff changeset
    49
}