summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-21 15:58:45 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-21 17:21:20 +0100
commitf10c3f1a7648f79caaa01d379791d272737913c0 (patch)
tree63be34d9b1c445bfa22e640f64e67f35813b92c8
parentd9eb5f7fde528923d96b413007af78395405a2bc (diff)
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
-rw-r--r--gst/rtpmanager/gstrtpmux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c
index a4b4f39fe..1dc2da432 100644
--- a/gst/rtpmanager/gstrtpmux.c
+++ b/gst/rtpmanager/gstrtpmux.c
@@ -412,7 +412,6 @@ gst_rtp_mux_chain_list (GstPad * pad, GstObject * parent,
GstRTPMux *rtp_mux;
GstFlowReturn ret;
GstRTPMuxPadPrivate *padpriv;
- gboolean drop = TRUE;
struct BufferListData bd;
rtp_mux = GST_RTP_MUX (parent);
@@ -436,7 +435,7 @@ gst_rtp_mux_chain_list (GstPad * pad, GstObject * parent,
GST_OBJECT_UNLOCK (rtp_mux);
- if (drop) {
+ if (bd.drop) {
gst_buffer_list_unref (bufferlist);
ret = GST_FLOW_OK;
} else {