diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-30 00:31:15 +0100 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-30 00:31:15 +0100 | 
| commit | 0260a8613bd992b596dfa0f2b69ecfbba33c9bca (patch) | |
| tree | d38f86a1d3d38d15041e61de985a3a185c8b2010 | |
| parent | b41ba1eb2b6b7a775536f803eda6fe42d8742745 (diff) | |
Fix signed/unsigned comparison issue within GStreamer plugin
| -rw-r--r-- | audio/Makefile.am | 2 | ||||
| -rw-r--r-- | audio/gstrtpsbcpay.c | 6 | ||||
| -rw-r--r-- | audio/gstsbcenc.h | 2 | ||||
| -rw-r--r-- | audio/gstsbcutil.c | 2 | 
4 files changed, 6 insertions, 6 deletions
| 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; | 
