mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
rtpmux: fix buffer list drop check
While porting to 0.11, the check was mistakenly made constant, instead of testing for the return value of process_buffer_locked. Coverity 1139663
This commit is contained in:
parent
d9eb5f7fde
commit
f10c3f1a76
1 changed files with 1 additions and 2 deletions
|
@ -412,7 +412,6 @@ gst_rtp_mux_chain_list (GstPad * pad, GstObject * parent,
|
||||||
GstRTPMux *rtp_mux;
|
GstRTPMux *rtp_mux;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
GstRTPMuxPadPrivate *padpriv;
|
GstRTPMuxPadPrivate *padpriv;
|
||||||
gboolean drop = TRUE;
|
|
||||||
struct BufferListData bd;
|
struct BufferListData bd;
|
||||||
|
|
||||||
rtp_mux = GST_RTP_MUX (parent);
|
rtp_mux = GST_RTP_MUX (parent);
|
||||||
|
@ -436,7 +435,7 @@ gst_rtp_mux_chain_list (GstPad * pad, GstObject * parent,
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (rtp_mux);
|
GST_OBJECT_UNLOCK (rtp_mux);
|
||||||
|
|
||||||
if (drop) {
|
if (bd.drop) {
|
||||||
gst_buffer_list_unref (bufferlist);
|
gst_buffer_list_unref (bufferlist);
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue