Blame plugins/elements/gstelements.c

Packit f546b1
/* GStreamer
Packit f546b1
 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
Packit f546b1
 *                    2000 Wim Taymans <wtay@chello.be>
Packit f546b1
 *
Packit f546b1
 * gstelements.c:
Packit f546b1
 *
Packit f546b1
 * This library is free software; you can redistribute it and/or
Packit f546b1
 * modify it under the terms of the GNU Library General Public
Packit f546b1
 * License as published by the Free Software Foundation; either
Packit f546b1
 * version 2 of the License, or (at your option) any later version.
Packit f546b1
 *
Packit f546b1
 * This library is distributed in the hope that it will be useful,
Packit f546b1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f546b1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f546b1
 * Library General Public License for more details.
Packit f546b1
 *
Packit f546b1
 * You should have received a copy of the GNU Library General Public
Packit f546b1
 * License along with this library; if not, write to the
Packit f546b1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit f546b1
 * Boston, MA 02110-1301, USA.
Packit f546b1
 */
Packit f546b1
Packit f546b1
Packit f546b1
#ifdef HAVE_CONFIG_H
Packit f546b1
#  include "config.h"
Packit f546b1
#endif
Packit f546b1
Packit f546b1
#include <gst/gst.h>
Packit f546b1
Packit f546b1
#include "gstcapsfilter.h"
Packit f546b1
#include "gstconcat.h"
Packit f546b1
#include "gstdataurisrc.h"
Packit f546b1
#include "gstdownloadbuffer.h"
Packit f546b1
#include "gstfakesink.h"
Packit f546b1
#include "gstfakesrc.h"
Packit f546b1
#include "gstfdsrc.h"
Packit f546b1
#include "gstfdsink.h"
Packit f546b1
#include "gstfilesink.h"
Packit f546b1
#include "gstfilesrc.h"
Packit f546b1
#include "gstfunnel.h"
Packit f546b1
#include "gstidentity.h"
Packit f546b1
#include "gstinputselector.h"
Packit f546b1
#include "gstoutputselector.h"
Packit f546b1
#include "gstmultiqueue.h"
Packit f546b1
#include "gstqueue.h"
Packit f546b1
#include "gstqueue2.h"
Packit f546b1
#include "gsttee.h"
Packit f546b1
#include "gsttypefindelement.h"
Packit f546b1
#include "gstvalve.h"
Packit f546b1
#include "gststreamiddemux.h"
Packit f546b1
Packit f546b1
static gboolean
Packit f546b1
plugin_init (GstPlugin * plugin)
Packit f546b1
{
Packit f546b1
  if (!gst_element_register (plugin, "capsfilter", GST_RANK_NONE,
Packit f546b1
          gst_capsfilter_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "concat", GST_RANK_NONE,
Packit f546b1
          gst_concat_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "dataurisrc", GST_RANK_PRIMARY,
Packit f546b1
          gst_data_uri_src_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "downloadbuffer", GST_RANK_NONE,
Packit f546b1
          gst_download_buffer_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "fakesrc", GST_RANK_NONE,
Packit f546b1
          gst_fake_src_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "fakesink", GST_RANK_NONE,
Packit f546b1
          gst_fake_sink_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
Packit f546b1
  if (!gst_element_register (plugin, "fdsrc", GST_RANK_NONE,
Packit f546b1
          gst_fd_src_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "fdsink", GST_RANK_NONE,
Packit f546b1
          gst_fd_sink_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
#endif
Packit f546b1
  if (!gst_element_register (plugin, "filesrc", GST_RANK_PRIMARY,
Packit f546b1
          gst_file_src_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "funnel", GST_RANK_NONE,
Packit f546b1
          gst_funnel_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "identity", GST_RANK_NONE,
Packit f546b1
          gst_identity_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "input-selector", GST_RANK_NONE,
Packit f546b1
          gst_input_selector_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "output-selector", GST_RANK_NONE,
Packit f546b1
          gst_output_selector_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "queue", GST_RANK_NONE,
Packit f546b1
          gst_queue_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "queue2", GST_RANK_NONE,
Packit f546b1
          gst_queue2_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "filesink", GST_RANK_PRIMARY,
Packit f546b1
          gst_file_sink_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "tee", GST_RANK_NONE, gst_tee_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "typefind", GST_RANK_NONE,
Packit f546b1
          gst_type_find_element_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "multiqueue", GST_RANK_NONE,
Packit f546b1
          gst_multi_queue_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
  if (!gst_element_register (plugin, "valve", GST_RANK_NONE,
Packit f546b1
          gst_valve_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
Packit f546b1
  if (!gst_element_register (plugin, "streamiddemux", GST_RANK_PRIMARY,
Packit f546b1
          gst_streamid_demux_get_type ()))
Packit f546b1
    return FALSE;
Packit f546b1
Packit f546b1
  return TRUE;
Packit f546b1
}
Packit f546b1
Packit f546b1
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, coreelements,
Packit f546b1
    "GStreamer core elements", plugin_init, VERSION, GST_LICENSE,
Packit f546b1
    GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);