rtpmux: Remove useless caps mangling
authorOlivier Crête <olivier.crete@collabora.co.uk>
Mon, 20 Apr 2009 22:41:39 +0000 (18:41 -0400)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Tue, 21 Apr 2009 00:24:17 +0000 (20:24 -0400)
gst/rtpmux/gstrtpmux.c

index ecfefae2823611aeed1662999d32eef354812146..5957f96e4c5ff3ab3ebb52466ba8ef3c066c2858 100644 (file)
@@ -330,7 +330,6 @@ 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));
@@ -347,10 +346,6 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
   rtp_mux->seqnum++;
   gst_rtp_buffer_set_seq (buffer, rtp_mux->seqnum);
   GST_OBJECT_UNLOCK (rtp_mux);
-  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",