summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2007-07-12 19:53:36 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:54 +0100
commit620b63a4079e7726b6a6ef9391b3cf273fe7cb50 (patch)
tree02d8393a466d22be00841fb68317d265bdde0365 /gst
parent76fb00c0b17620ffbd1d5d26ddca7e2eb2208a38 (diff)
downloadgst-plugins-bad-620b63a4079e7726b6a6ef9391b3cf273fe7cb50.tar.gz
gst-plugins-bad-620b63a4079e7726b6a6ef9391b3cf273fe7cb50.tar.bz2
gst-plugins-bad-620b63a4079e7726b6a6ef9391b3cf273fe7cb50.zip
[MOVED FROM GST-P-FARSIGHT] Make buffer writable before writing into it
20070712195336-3e2dc-91a5fb797cfa4919d4e2f9a728c6d6fbd3b83d93.gz
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmux/gstrtpmux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 9ceedb6e..79af6a45 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -364,7 +364,9 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
GstFlowReturn ret;
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
-
+
+ buffer = gst_buffer_make_writable(buffer);
+
rtp_mux->seqnum++;
GST_LOG_OBJECT (rtp_mux, "setting RTP seqnum %d", rtp_mux->seqnum);
gst_rtp_buffer_set_seq (buffer, rtp_mux->seqnum);