diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-19 19:49:24 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-19 19:49:24 +0000 |
commit | a8b3b548ec9870df10709a839ed4c07e6d8eb76d (patch) | |
tree | 2f94e2f9d6e6878165c5cb6fec57ebd13bad4d4c /audio/gstrtpsbcpay.c | |
parent | 23a5ed9f697a1e42a0d36c72dd9a297792c61082 (diff) |
Update gstreamer plugin to use new sbc API.
Diffstat (limited to 'audio/gstrtpsbcpay.c')
-rw-r--r-- | audio/gstrtpsbcpay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/gstrtpsbcpay.c b/audio/gstrtpsbcpay.c index 235ad6bb..70f5bef2 100644 --- a/audio/gstrtpsbcpay.c +++ b/audio/gstrtpsbcpay.c @@ -217,9 +217,10 @@ static GstFlowReturn gst_rtp_sbc_pay_handle_buffer(GstBaseRTPPayload *payload, /* FIXME check for negotiation */ sbcpay = GST_RTP_SBC_PAY(payload); + sbcpay->timestamp = GST_BUFFER_TIMESTAMP(buffer); + gst_adapter_push(sbcpay->adapter, gst_buffer_copy(buffer)); - sbcpay->timestamp = GST_BUFFER_TIMESTAMP(buffer); available = gst_adapter_available(sbcpay->adapter); if (available + RTP_SBC_HEADER_TOTAL >= GST_BASE_RTP_PAYLOAD_MTU(sbcpay) || |