opusparse: add opusparse element
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 15 Nov 2011 19:53:33 +0000 (19:53 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 16 Nov 2011 17:58:15 +0000 (17:58 +0000)
A very simple element that parses Opus streams from the ad hoc
framing used by the Opus test vectors.

ext/opus/Makefile.am
ext/opus/gstopus.c

index 57e1692..6fe723e 100644 (file)
@@ -1,6 +1,6 @@
 plugin_LTLIBRARIES = libgstopus.la
 
-libgstopus_la_SOURCES = gstopus.c gstopusdec.c gstopusenc.c
+libgstopus_la_SOURCES = gstopus.c gstopusdec.c gstopusenc.c gstopusparse.c
 libgstopus_la_CFLAGS = \
         -DGST_USE_UNSTABLE_API \
        $(GST_PLUGINS_BASE_CFLAGS) \
@@ -15,4 +15,4 @@ libgstopus_la_LIBADD = \
 libgstopus_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(LIBM)
 libgstopus_la_LIBTOOLFLAGS = --tag=disable-static
 
-noinst_HEADERS = gstopusenc.h gstopusdec.h 
+noinst_HEADERS = gstopusenc.h gstopusdec.h gstopusparse.h
index 65e9dcd..c5f68a1 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "gstopusdec.h"
 #include "gstopusenc.h"
+#include "gstopusparse.h"
 
 #include <gst/tag/tag.h>
 
@@ -38,6 +39,10 @@ plugin_init (GstPlugin * plugin)
           GST_TYPE_OPUS_DEC))
     return FALSE;
 
+  if (!gst_element_register (plugin, "opusparse", GST_RANK_NONE,
+          GST_TYPE_OPUS_PARSE))
+    return FALSE;
+
   gst_tag_register_musicbrainz_tags ();
 
   return TRUE;