Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / multifile / gstmultifile.c
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  *                    2000 Wim Taymans <wtay@chello.be>
4  *                    2006 Wim Taymans <wim@fluendo.com>
5  *                    2006 David A. Schleef <ds@schleef.org>
6  *
7  * gstmultifilesink.c:
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24
25 #ifdef HAVE_CONFIG_H
26 #  include "config.h"
27 #endif
28
29 #include <gst/gst.h>
30
31 #include "gstmultifilesink.h"
32 #include "gstmultifilesrc.h"
33 #include "gstsplitfilesrc.h"
34
35 static gboolean
36 plugin_init (GstPlugin * plugin)
37 {
38   gst_element_register (plugin, "multifilesrc", GST_RANK_NONE,
39       gst_multi_file_src_get_type ());
40   gst_element_register (plugin, "multifilesink", GST_RANK_NONE,
41       gst_multi_file_sink_get_type ());
42   gst_element_register (plugin, "splitfilesrc", GST_RANK_NONE,
43       gst_split_file_src_get_type ());
44
45   return TRUE;
46 }
47
48 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
49     GST_VERSION_MINOR,
50     "multifile",
51     "Reads/Writes buffers from/to sequentially named files",
52     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);