bluez: Fix a number of compiler warnings

This commit is contained in:
Wim Taymans 2012-10-29 16:45:25 +05:30 committed by Arun Raghavan
parent ac85a633b0
commit ec00b31b18
4 changed files with 12 additions and 3 deletions

View file

@ -90,7 +90,7 @@ gst_a2dp_src_init (GstA2dpSrc * a2dpsrc, GstA2dpSrcClass * klass)
{
GstBin *bin = GST_BIN (a2dpsrc);
GstElement *depay = NULL;
GstPad *srcpad, *depay_srcpad;
GstPad *srcpad = NULL, *depay_srcpad;
/* FIXME: We can set up the bin elements here since we only support
* SBC. When supporting more formats, we would need to only instantiate

View file

@ -53,6 +53,8 @@ struct _GstA2dpSrc
GstPad *srcpad;
};
GType gst_a2dp_src_get_type (void);
gboolean gst_a2dp_src_plugin_init (GstPlugin * plugin);
G_END_DECLS

View file

@ -25,6 +25,7 @@
#include <config.h>
#endif
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <poll.h>
@ -169,7 +170,7 @@ static GstCaps *
gst_avdtp_src_getcaps (GstPad * pad)
{
GstAvdtpSrc *avdtpsrc = GST_AVDTP_SRC (gst_pad_get_parent_element (pad));
GstCaps *ret;
GstCaps *ret = NULL;
if (avdtpsrc->dev_caps) {
const GValue *value;
@ -321,7 +322,7 @@ gst_avdtp_src_create (GstBaseSrc * bsrc, guint64 offset,
GST_LOG_OBJECT (avdtpsrc, "Read %d bytes", ret);
if (ret < length) {
if (ret < (gint) length) {
/* Create a subbuffer for as much as we've actually read */
*outbuf = gst_buffer_create_sub (buf, 0, ret);
gst_buffer_unref (buf);
@ -348,6 +349,8 @@ gst_avdtp_src_unlock (GstBaseSrc * bsrc)
g_atomic_int_set (&avdtpsrc->unlocked, TRUE);
gst_poll_set_flushing (avdtpsrc->poll, TRUE);
return TRUE;
}
static gboolean
@ -361,6 +364,8 @@ gst_avdtp_src_unlock_stop (GstBaseSrc * bsrc)
/* Flush out any stale data that might be buffered */
gst_avdtp_connection_conf_recv_stream_fd (&avdtpsrc->conn);
return TRUE;
}
gboolean

View file

@ -59,6 +59,8 @@ struct _GstAvdtpSrc
volatile gint unlocked;
};
GType gst_avdtp_src_get_type (void);
gboolean gst_avdtp_src_plugin_init (GstPlugin * plugin);
G_END_DECLS