rtpmux: Validate RTP data in RTP Mux

This commit is contained in:
Olivier Crête 2009-02-18 17:05:13 -05:00 committed by Tim-Philipp Müller
parent 360c8d4f1d
commit dc36590d0c

View file

@ -363,6 +363,12 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
if (!gst_rtp_buffer_validate (buffer)) {
GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer");
gst_object_unref (rtp_mux);
return GST_FLOW_ERROR;
}
buffer = gst_buffer_make_writable(buffer);
rtp_mux->seqnum++;