mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
gst/rtp/: Fix and activate ILBC pay and depayloaders. Fixes #368162.
Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_init), (gst_rtpilbcpay_setcaps): Fix and activate ILBC pay and depayloaders. Fixes #368162.
This commit is contained in:
parent
8ac0c0e09a
commit
eead7e23b7
4 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-10-31 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/rtp/Makefile.am:
|
||||
* gst/rtp/gstrtp.c: (plugin_init):
|
||||
* gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_init),
|
||||
(gst_rtpilbcpay_setcaps):
|
||||
Fix and activate ILBC pay and depayloaders. Fixes #368162.
|
||||
|
||||
2006-10-31 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/speex/gstspeexdec.c: (speex_dec_convert),
|
||||
|
|
|
@ -3,6 +3,8 @@ plugin_LTLIBRARIES = libgstrtp.la
|
|||
libgstrtp_la_SOURCES = \
|
||||
gstrtp.c \
|
||||
gstrtpdepay.c \
|
||||
gstrtpilbcdepay.c \
|
||||
gstrtpilbcpay.c \
|
||||
gstrtpmpadepay.c \
|
||||
gstrtpmpapay.c \
|
||||
gstrtppcmadepay.c \
|
||||
|
@ -47,6 +49,8 @@ noinst_HEADERS = \
|
|||
gstrtpL16pay.h \
|
||||
gstrtpamrdepay.h \
|
||||
gstrtpamrpay.h \
|
||||
gstrtpilbcdepay.h \
|
||||
gstrtpilbcpay.h \
|
||||
gstrtppcmadepay.h \
|
||||
gstrtppcmudepay.h \
|
||||
gstrtppcmupay.h \
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#endif
|
||||
|
||||
#include "gstrtpdepay.h"
|
||||
#include "gstrtpilbcdepay.h"
|
||||
#include "gstrtpilbcpay.h"
|
||||
#include "gstrtppcmupay.h"
|
||||
#include "gstrtppcmapay.h"
|
||||
#include "gstrtppcmadepay.h"
|
||||
|
@ -54,6 +56,12 @@ plugin_init (GstPlugin * plugin)
|
|||
if (!gst_rtp_depay_plugin_init (plugin))
|
||||
return FALSE;
|
||||
|
||||
if (!gst_rtp_ilbc_pay_plugin_init (plugin))
|
||||
return FALSE;
|
||||
|
||||
if (!gst_rtp_ilbc_depay_plugin_init (plugin))
|
||||
return FALSE;
|
||||
|
||||
if (!gst_rtp_gsm_depay_plugin_init (plugin))
|
||||
return FALSE;
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ gst_rtpilbcpay_init (GstRTPILBCPay * rtpilbcpay, GstRTPILBCPayClass * klass)
|
|||
rtpilbcpay->mode = -1;
|
||||
|
||||
/* tell basertpaudiopayload that this is a frame based codec */
|
||||
gst_basertpaudiopayload_set_frame_based (basertpaudiopayload);
|
||||
gst_base_rtp_audio_payload_set_frame_based (basertpaudiopayload);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -134,7 +134,7 @@ gst_rtpilbcpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
|
|||
gst_basertppayload_set_options (basertppayload, "audio", TRUE, "iLBC",
|
||||
8000);
|
||||
/* set options for this frame based audio codec */
|
||||
gst_basertpaudiopayload_set_frame_options (basertpaudiopayload,
|
||||
gst_base_rtp_audio_payload_set_frame_options (basertpaudiopayload,
|
||||
mode, mode == 30 ? 50 : 38);
|
||||
} else {
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue