summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHÃ¥vard Graff <havard.graff@tandberg.com>2008-12-01 17:55:22 -0500
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:56 +0100
commitd5f589c82ff1b5d34e1b94af21765cf1eff1c1e0 (patch)
treea0fca03ce818f7d5e7a44abf4e3a4f64ce4228b6
parent272f888d9c3111862346fd2b009833782526ef27 (diff)
downloadgst-plugins-bad-d5f589c82ff1b5d34e1b94af21765cf1eff1c1e0.tar.gz
gst-plugins-bad-d5f589c82ff1b5d34e1b94af21765cf1eff1c1e0.tar.bz2
gst-plugins-bad-d5f589c82ff1b5d34e1b94af21765cf1eff1c1e0.zip
[MOVED FROM GST-P-FARSIGHT] Update seqnum base in rtp muxer
With help from Wim
-rw-r--r--gst/rtpmux/gstrtpmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 34b9fd82..b6f1d287 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -365,6 +365,7 @@ static GstFlowReturn
gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
{
GstRTPMux *rtp_mux;
+ GstStructure * structure;
GstFlowReturn ret;
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
@@ -373,6 +374,9 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
rtp_mux->seqnum++;
gst_rtp_buffer_set_seq (buffer, rtp_mux->seqnum);
+ GST_BUFFER_CAPS (buffer) = gst_caps_make_writable(GST_BUFFER_CAPS (buffer));
+ structure = gst_caps_get_structure (GST_BUFFER_CAPS (buffer), 0U);
+ gst_structure_set (structure, "seqnum-base", G_TYPE_UINT, rtp_mux->seqnum_base, NULL);
gst_rtp_buffer_set_ssrc (buffer, rtp_mux->current_ssrc);
gst_rtp_mux_readjust_rtp_timestamp (rtp_mux, pad, buffer);
GST_LOG_OBJECT (rtp_mux, "Pushing packet size %d, seq=%d, ts=%u",