Adding opus RTP payloader/depayloader element
Adding OPUS RTP module based on the current draft: http://tools.ietf.org/id/draft-spittka-payload-rtp-opus-00.txt https://bugzilla.gnome.org/show_bug.cgi?id=664817
This commit is contained in:
parent
dbca14b23b
commit
3a978f5a69
@ -1,6 +1,6 @@
|
|||||||
plugin_LTLIBRARIES = libgstopus.la
|
plugin_LTLIBRARIES = libgstopus.la
|
||||||
|
|
||||||
libgstopus_la_SOURCES = gstopus.c gstopusdec.c gstopusenc.c gstopusparse.c gstopusheader.c gstopuscommon.c
|
libgstopus_la_SOURCES = gstopus.c gstopusdec.c gstopusenc.c gstopusparse.c gstopusheader.c gstopuscommon.c gstrtpopuspay.c gstrtpopusdepay.c
|
||||||
libgstopus_la_CFLAGS = \
|
libgstopus_la_CFLAGS = \
|
||||||
-DGST_USE_UNSTABLE_API \
|
-DGST_USE_UNSTABLE_API \
|
||||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||||
@ -9,10 +9,11 @@ libgstopus_la_CFLAGS = \
|
|||||||
libgstopus_la_LIBADD = \
|
libgstopus_la_LIBADD = \
|
||||||
-lgstaudio-$(GST_MAJORMINOR) \
|
-lgstaudio-$(GST_MAJORMINOR) \
|
||||||
$(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR) \
|
$(GST_PLUGINS_BASE_LIBS) -lgsttag-$(GST_MAJORMINOR) \
|
||||||
|
-lgstrtp-@GST_MAJORMINOR@ \
|
||||||
$(GST_BASE_LIBS) \
|
$(GST_BASE_LIBS) \
|
||||||
$(GST_LIBS) \
|
$(GST_LIBS) \
|
||||||
$(OPUS_LIBS)
|
$(OPUS_LIBS)
|
||||||
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 gstopusparse.h gstopusheader.h gstopuscommon.h
|
noinst_HEADERS = gstopusenc.h gstopusdec.h gstopusparse.h gstopusheader.h gstopuscommon.h gstrtpopuspay.h gstrtpopusdepay.h
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
#include "gstopusenc.h"
|
#include "gstopusenc.h"
|
||||||
#include "gstopusparse.h"
|
#include "gstopusparse.h"
|
||||||
|
|
||||||
|
#include "gstrtpopuspay.h"
|
||||||
|
#include "gstrtpopusdepay.h"
|
||||||
|
|
||||||
#include <gst/tag/tag.h>
|
#include <gst/tag/tag.h>
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -43,6 +46,14 @@ plugin_init (GstPlugin * plugin)
|
|||||||
GST_TYPE_OPUS_PARSE))
|
GST_TYPE_OPUS_PARSE))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!gst_element_register (plugin, "rtpopusdepay", GST_RANK_NONE,
|
||||||
|
GST_TYPE_RTP_OPUS_DEPAY))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if (!gst_element_register (plugin, "rtpopuspay", GST_RANK_NONE,
|
||||||
|
GST_TYPE_RTP_OPUS_PAY))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
gst_tag_register_musicbrainz_tags ();
|
gst_tag_register_musicbrainz_tags ();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user