rtsp: fix compiler warnings

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676500
This commit is contained in:
David Svensson Fors 2012-05-22 15:37:25 +02:00 committed by Wim Taymans
parent 93f42c7d73
commit ffa3166fbd
4 changed files with 3 additions and 27 deletions

View file

@ -87,8 +87,6 @@ static void
gst_rtsp_auth_get_property (GObject * object, guint propid,
GValue * value, GParamSpec * pspec)
{
GstRTSPAuth *auth = GST_RTSP_AUTH (object);
switch (propid) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, propid, pspec);
@ -99,8 +97,6 @@ static void
gst_rtsp_auth_set_property (GObject * object, guint propid,
const GValue * value, GParamSpec * pspec)
{
GstRTSPAuth *auth = GST_RTSP_AUTH (object);
switch (propid) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, propid, pspec);

View file

@ -423,23 +423,6 @@ do_send_data (GstBuffer * buffer, guint8 channel, GstRTSPClient * client)
return TRUE;
}
static gboolean
do_send_data_list (GstBufferList * blist, guint8 channel,
GstRTSPClient * client)
{
guint len, i;
len = gst_buffer_list_length (blist);
for (i = 0; i < len; i++) {
GstBuffer *group = gst_buffer_list_get (blist, i);
do_send_data (group, channel, client);
}
return TRUE;
}
static void
link_stream (GstRTSPClient * client, GstRTSPSession * session,
GstRTSPSessionStream * stream)

View file

@ -121,7 +121,6 @@ typedef struct
static gboolean
payloader_filter (GstPluginFeature * feature, FilterData * data)
{
gboolean res;
const gchar *klass;
GstElementFactory *fact;
GList **list = NULL;
@ -290,7 +289,7 @@ gst_rtsp_media_factory_uri_get_uri (GstRTSPMediaFactoryURI * factory)
static GstElementFactory *
find_payloader (GstRTSPMediaFactoryURI * urifact, GstCaps * caps)
{
GList *list, *tmp;
GList *list;
GstElementFactory *factory = NULL;
/* first find a demuxer that can link */
@ -337,10 +336,8 @@ static gboolean
autoplug_continue_cb (GstElement * uribin, GstPad * pad, GstCaps * caps,
GstElement * element)
{
GList *list, *tmp;
FactoryData *data;
GstElementFactory *factory;
gboolean res;
GST_DEBUG ("found pad %s:%s of caps %" GST_PTR_FORMAT,
GST_DEBUG_PAD_NAME (pad), caps);

View file

@ -562,7 +562,7 @@ gst_rtsp_server_create_socket (GstRTSPServer * server,
{
GSocketConnectable *conn;
GSocketAddressEnumerator *enumerator;
GSocket *socket;
GSocket *socket = NULL;
#ifdef USE_SOLINGER
struct linger linger;
#endif
@ -793,7 +793,7 @@ gboolean
gst_rtsp_server_io_func (GSocket * socket, GIOCondition condition,
GstRTSPServer * server)
{
gboolean result;
gboolean result = TRUE;
GstRTSPClient *client = NULL;
GstRTSPServerClass *klass;
GError *error = NULL;