summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-21 21:34:27 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-21 21:34:27 +0000
commit29e9ebcfda9cce9d72099d098d60bc7da0ea601a (patch)
treee84025a62eca39514a72abd5c7564d163a5326f1 /gst/matroska/matroska.c
parente21d05a3008439620d90deaf8457336d1a44c58d (diff)
Add C-based local matroska/EBML plugin, remove libmatroska/libebml c++ one
Original commit message from CVS: Add C-based local matroska/EBML plugin, remove libmatroska/libebml c++ one
Diffstat (limited to 'gst/matroska/matroska.c')
-rw-r--r--gst/matroska/matroska.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/gst/matroska/matroska.c b/gst/matroska/matroska.c
new file mode 100644
index 00000000..dc1768ab
--- /dev/null
+++ b/gst/matroska/matroska.c
@@ -0,0 +1,47 @@
+/* GStreamer Matroska muxer/demuxer
+ * (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
+ *
+ * matroska.c: plugin loader
+ *
+ * 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 "matroska-demux.h"
+#include "matroska-mux.h"
+
+static gboolean
+plugin_init (GstPlugin *plugin)
+{
+ return (gst_matroska_demux_plugin_init (plugin) &&
+ gst_matroska_mux_plugin_init (plugin));
+}
+
+GST_PLUGIN_DEFINE (
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "matroska",
+ "Matroska stream handling",
+ plugin_init,
+ VERSION,
+ "LGPL",
+ GST_COPYRIGHT,
+ GST_PACKAGE,
+ GST_ORIGIN
+)