mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
gst/rtp/gstrtpspeexdepay.*: Revert last change: Only the jitterbuffer is able to convert RTP to
Original commit message from CVS: * gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_init), (gst_rtp_speex_depay_process): * gst/rtp/gstrtpspeexdepay.h: Revert last change: Only the jitterbuffer is able to convert RTP to Gstreamer timestamps and normal (de)payloaders should simply copy it. Reopens bug #541787.
This commit is contained in:
parent
9f886ee1f2
commit
0db3e69da9
3 changed files with 10 additions and 10 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2008-07-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/rtp/gstrtpspeexdepay.c: (gst_rtp_speex_depay_init),
|
||||||
|
(gst_rtp_speex_depay_process):
|
||||||
|
* gst/rtp/gstrtpspeexdepay.h:
|
||||||
|
Revert last change: Only the jitterbuffer is able to convert RTP to
|
||||||
|
Gstreamer timestamps and normal (de)payloaders should simply copy it.
|
||||||
|
Reopens bug #541787.
|
||||||
|
|
||||||
2008-07-07 Stefan Kost <ensonic@users.sf.net>
|
2008-07-07 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* gst/rtp/gstrtpvrawdepay.c:
|
* gst/rtp/gstrtpvrawdepay.c:
|
||||||
|
|
|
@ -105,7 +105,6 @@ gst_rtp_speex_depay_init (GstRtpSPEEXDepay * rtpspeexdepay,
|
||||||
GstRtpSPEEXDepayClass * klass)
|
GstRtpSPEEXDepayClass * klass)
|
||||||
{
|
{
|
||||||
GST_BASE_RTP_DEPAYLOAD (rtpspeexdepay)->clock_rate = 8000;
|
GST_BASE_RTP_DEPAYLOAD (rtpspeexdepay)->clock_rate = 8000;
|
||||||
rtpspeexdepay->start_ts = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
@ -203,15 +202,8 @@ gst_rtp_speex_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
|
||||||
gst_rtp_buffer_get_marker (buf),
|
gst_rtp_buffer_get_marker (buf),
|
||||||
gst_rtp_buffer_get_timestamp (buf), gst_rtp_buffer_get_seq (buf));
|
gst_rtp_buffer_get_timestamp (buf), gst_rtp_buffer_get_seq (buf));
|
||||||
|
|
||||||
GstRtpSPEEXDepay *speexdepayload = GST_RTP_SPEEX_DEPAY (depayload);
|
/* nothing special to be done */
|
||||||
/* apply correct timestamp from rtp packet */
|
|
||||||
outbuf = gst_rtp_buffer_get_payload_buffer (buf);
|
outbuf = gst_rtp_buffer_get_payload_buffer (buf);
|
||||||
if (speexdepayload->start_ts == 0)
|
|
||||||
speexdepayload->start_ts = gst_rtp_buffer_get_timestamp (buf);
|
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) =
|
|
||||||
gst_util_uint64_scale (GST_SECOND,
|
|
||||||
gst_rtp_buffer_get_timestamp (buf) - speexdepayload->start_ts,
|
|
||||||
depayload->clock_rate);
|
|
||||||
|
|
||||||
return outbuf;
|
return outbuf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,6 @@ typedef struct _GstRtpSPEEXDepayClass GstRtpSPEEXDepayClass;
|
||||||
struct _GstRtpSPEEXDepay
|
struct _GstRtpSPEEXDepay
|
||||||
{
|
{
|
||||||
GstBaseRTPDepayload depayload;
|
GstBaseRTPDepayload depayload;
|
||||||
guint64 start_ts;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRtpSPEEXDepayClass
|
struct _GstRtpSPEEXDepayClass
|
||||||
|
|
Loading…
Reference in a new issue