mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
opusparse: add opusparse element
A very simple element that parses Opus streams from the ad hoc framing used by the Opus test vectors.
This commit is contained in:
parent
a4a837dd39
commit
1c99cb3ab1
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
plugin_LTLIBRARIES = libgstopus.la
|
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 = \
|
libgstopus_la_CFLAGS = \
|
||||||
-DGST_USE_UNSTABLE_API \
|
-DGST_USE_UNSTABLE_API \
|
||||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||||
|
@ -15,4 +15,4 @@ libgstopus_la_LIBADD = \
|
||||||
libgstopus_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(LIBM)
|
libgstopus_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(LIBM)
|
||||||
libgstopus_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstopus_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
noinst_HEADERS = gstopusenc.h gstopusdec.h
|
noinst_HEADERS = gstopusenc.h gstopusdec.h gstopusparse.h
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include "gstopusdec.h"
|
#include "gstopusdec.h"
|
||||||
#include "gstopusenc.h"
|
#include "gstopusenc.h"
|
||||||
|
#include "gstopusparse.h"
|
||||||
|
|
||||||
#include <gst/tag/tag.h>
|
#include <gst/tag/tag.h>
|
||||||
|
|
||||||
|
@ -38,6 +39,10 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_TYPE_OPUS_DEC))
|
GST_TYPE_OPUS_DEC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!gst_element_register (plugin, "opusparse", GST_RANK_NONE,
|
||||||
|
GST_TYPE_OPUS_PARSE))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
gst_tag_register_musicbrainz_tags ();
|
gst_tag_register_musicbrainz_tags ();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue