Commit eead7e23 authored by Wim Taymans's avatar Wim Taymans

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.
parent 8ac0c0e0
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment