Fix signed/unsigned comparison issue within GStreamer plugin

This commit is contained in:
Marcel Holtmann 2009-01-30 00:31:15 +01:00
parent b41ba1eb2b
commit 0260a8613b
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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;

View File

@ -57,7 +57,7 @@ struct _GstSbcEnc {
gint subbands;
gint bitpool;
gint codesize;
guint codesize;
gint frame_length;
gint frame_duration;

View File

@ -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;