mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 00:50:21 +00:00
109 lines
3.6 KiB
C
109 lines
3.6 KiB
C
/* GStreamer
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
|
*
|
|
* gstelements.c:
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include "gstcapsfilter.h"
|
|
#include "gstfakesink.h"
|
|
#include "gstfakesrc.h"
|
|
#include "gstfdsrc.h"
|
|
#include "gstfdsink.h"
|
|
#include "gstfilesink.h"
|
|
#include "gstfilesrc.h"
|
|
#include "gstfunnel.h"
|
|
#include "gstidentity.h"
|
|
#include "gstinputselector.h"
|
|
#include "gstoutputselector.h"
|
|
#include "gstmultiqueue.h"
|
|
#include "gstqueue.h"
|
|
#include "gstqueue2.h"
|
|
#include "gsttee.h"
|
|
#include "gsttypefindelement.h"
|
|
#include "gstvalve.h"
|
|
|
|
static gboolean
|
|
plugin_init (GstPlugin * plugin)
|
|
{
|
|
if (!gst_element_register (plugin, "capsfilter", GST_RANK_NONE,
|
|
gst_capsfilter_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "fakesrc", GST_RANK_NONE,
|
|
gst_fake_src_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "fakesink", GST_RANK_NONE,
|
|
gst_fake_sink_get_type ()))
|
|
return FALSE;
|
|
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
|
|
if (!gst_element_register (plugin, "fdsrc", GST_RANK_NONE,
|
|
gst_fd_src_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "fdsink", GST_RANK_NONE,
|
|
gst_fd_sink_get_type ()))
|
|
return FALSE;
|
|
#endif
|
|
if (!gst_element_register (plugin, "filesrc", GST_RANK_PRIMARY,
|
|
gst_file_src_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "funnel", GST_RANK_NONE,
|
|
gst_funnel_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "identity", GST_RANK_NONE,
|
|
gst_identity_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "input-selector", GST_RANK_NONE,
|
|
gst_input_selector_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "output-selector", GST_RANK_NONE,
|
|
gst_output_selector_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "queue", GST_RANK_NONE,
|
|
gst_queue_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "queue2", GST_RANK_NONE,
|
|
gst_queue2_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "filesink", GST_RANK_PRIMARY,
|
|
gst_file_sink_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "tee", GST_RANK_NONE, gst_tee_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "typefind", GST_RANK_NONE,
|
|
gst_type_find_element_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "multiqueue", GST_RANK_NONE,
|
|
gst_multi_queue_get_type ()))
|
|
return FALSE;
|
|
if (!gst_element_register (plugin, "valve", GST_RANK_NONE,
|
|
gst_valve_get_type ()))
|
|
return FALSE;
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, coreelements,
|
|
" GStreamer core elements", plugin_init, VERSION, GST_LICENSE,
|
|
GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
|