diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-10-31 10:52:31 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-10-31 10:52:31 +0000 |
commit | eead7e23b70c5ebb1af4d52c2cd8bea1bc9db2aa (patch) | |
tree | fcea1801a77f484da4e455e0af2dba1d744a71c1 /gst | |
parent | 8ac0c0e09a8a4c5cc8c41237aa3980545ea18d2a (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtp/Makefile.am | 4 | ||||
-rw-r--r-- | gst/rtp/gstrtp.c | 8 | ||||
-rw-r--r-- | gst/rtp/gstrtpilbcpay.c | 4 |
3 files changed, 14 insertions, 2 deletions
diff --git a/gst/rtp/Makefile.am b/gst/rtp/Makefile.am index d7527349..e1916c77 100644 --- a/gst/rtp/Makefile.am +++ b/gst/rtp/Makefile.am @@ -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 \ diff --git a/gst/rtp/gstrtp.c b/gst/rtp/gstrtp.c index 7280642a..3d4aa841 100644 --- a/gst/rtp/gstrtp.c +++ b/gst/rtp/gstrtp.c @@ -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; diff --git a/gst/rtp/gstrtpilbcpay.c b/gst/rtp/gstrtpilbcpay.c index cb9409cd..40e431ff 100644 --- a/gst/rtp/gstrtpilbcpay.c +++ b/gst/rtp/gstrtpilbcpay.c @@ -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; |