mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Fix signed/unsigned comparison issue within GStreamer plugin
This commit is contained in:
parent
b41ba1eb2b
commit
0260a8613b
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -57,7 +57,7 @@ struct _GstSbcEnc {
|
||||
gint subbands;
|
||||
gint bitpool;
|
||||
|
||||
gint codesize;
|
||||
guint codesize;
|
||||
gint frame_length;
|
||||
gint frame_duration;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user