From 0260a8613bd992b596dfa0f2b69ecfbba33c9bca Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 30 Jan 2009 00:31:15 +0100 Subject: Fix signed/unsigned comparison issue within GStreamer plugin --- audio/Makefile.am | 2 +- audio/gstrtpsbcpay.c | 6 +++--- audio/gstsbcenc.h | 2 +- audio/gstsbcutil.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'audio') diff --git a/audio/Makefile.am b/audio/Makefile.am index 76710f3d..43030b8f 100644 --- a/audio/Makefile.am +++ b/audio/Makefile.am @@ -51,7 +51,7 @@ libgstbluetooth_la_SOURCES = gstbluetooth.c \ rtp.h ipc.h ipc.c libgstbluetooth_la_LDFLAGS = -module -avoid-version -export-symbols-regex gst_plugin_desc libgstbluetooth_la_LIBADD = @SBC_LIBS@ @BLUEZ_LIBS@ @GSTREAMER_LIBS@ -lgstaudio-0.10 -lgstrtp-0.10 -libgstbluetooth_la_CFLAGS = @GSTREAMER_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@ -Wno-sign-compare +libgstbluetooth_la_CFLAGS = @GSTREAMER_CFLAGS@ @BLUEZ_CFLAGS@ @SBC_CFLAGS@ endif endif diff --git a/audio/gstrtpsbcpay.c b/audio/gstrtpsbcpay.c index f71c40e3..78ffb2a0 100644 --- a/audio/gstrtpsbcpay.c +++ b/audio/gstrtpsbcpay.c @@ -223,9 +223,9 @@ static GstFlowReturn gst_rtp_sbc_pay_handle_buffer(GstBaseRTPPayload *payload, 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))) + GST_BASE_RTP_PAYLOAD_MTU(sbcpay) || + (available > + (sbcpay->min_frames * sbcpay->frame_length))) return gst_rtp_sbc_pay_flush_buffers(sbcpay); return GST_FLOW_OK; diff --git a/audio/gstsbcenc.h b/audio/gstsbcenc.h index d84dace8..6d69922a 100644 --- a/audio/gstsbcenc.h +++ b/audio/gstsbcenc.h @@ -57,7 +57,7 @@ struct _GstSbcEnc { gint subbands; gint bitpool; - gint codesize; + guint codesize; gint frame_length; gint frame_duration; diff --git a/audio/gstsbcutil.c b/audio/gstsbcutil.c index 6f95c244..b102da3a 100644 --- a/audio/gstsbcutil.c +++ b/audio/gstsbcutil.c @@ -91,7 +91,7 @@ const gchar *gst_sbc_get_allocation_from_list(const GValue *value) */ const gchar *gst_sbc_get_mode_from_list(const GValue *list, gint channels) { - int i; + unsigned int i; const GValue *value; const gchar *aux; gboolean joint, stereo, dual, mono; -- cgit