From 7fa03c007602792b74e4e8f8fcc8addd3268565c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 30 Jan 2009 00:31:15 +0100 Subject: [PATCH] rtpsbcpay: Fix signed/unsigned comparison issue within GStreamer plugin --- gst/rtp/gstrtpsbcpay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/rtp/gstrtpsbcpay.c b/gst/rtp/gstrtpsbcpay.c index 34f0863..4815e3f 100644 --- a/gst/rtp/gstrtpsbcpay.c +++ b/gst/rtp/gstrtpsbcpay.c @@ -225,8 +225,7 @@ gst_rtp_sbc_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer) available = gst_adapter_available (sbcpay->adapter); if (available + RTP_SBC_HEADER_TOTAL >= GST_BASE_RTP_PAYLOAD_MTU (sbcpay) || - (sbcpay->min_frames != -1 && available > - (sbcpay->min_frames * sbcpay->frame_length))) + (available > (sbcpay->min_frames * sbcpay->frame_length))) return gst_rtp_sbc_pay_flush_buffers (sbcpay); return GST_FLOW_OK; -- 2.7.4