From 2d109a18fb9bb87100c8b788457bc5c8458f9f50 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 29 Jun 2005 16:14:30 +0000 Subject: configure.ac (GST_CFLAGS): GCC strikes back!!! Let the build breakage ensue!!! Original commit message from CVS: 2005-06-29 Andy Wingo * configure.ac (GST_CFLAGS): GCC strikes back!!! Let the build breakage ensue!!! * gst/rtsp/gstrtspsrc.c (gst_rtspsrc_loop, gst_rtspsrc_open): Signedness, unused var fixes. (gst_rtspsrc_close): Unused? * gst/realmedia/rmdemux.c (re_hexdump_bytes): Unused. * gst/law/mulaw-encode.c (gst_mulawenc_chain): Signeness fix. * gst/law/alaw-encode.c (alawenc_getcaps): Remove unneeded declarations. Typo (probably crasher) fix. * gst/law/mulaw-encode.c (mulawdec_getcaps): * gst/law/mulaw-encode.c (mulawenc_getcaps): * gst/law/alaw-decode.c (alawdec_getcaps): Same crasher fix. * gst/goom/gstgoom.c (gst_goom_init): Hook up the event function. * gst/effectv/gstwarp.c (gst_warptv_setup): Signedness fix. * gst/effectv/gstdice.c (gst_dicetv_draw): Um, deferencing uninitialized pointer not good. * gst/videofilter/gstvideoexample.c (plugin_init): * gst/videofilter/Makefile.am (libgstvideoexample_la_LIBADD): Link to libgstvideofilter instead of gst_library_load. * gst/alpha/gstalpha.c (gst_alpha_chroma_key_i420) (gst_alpha_chroma_key_ayuv): Signedness fixen. --- gst/rtsp/gstrtspsrc.c | 7 ++----- gst/rtsp/rtspconnection.c | 7 +++++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'gst/rtsp') diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index e82d9087..a522e357 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -292,7 +292,6 @@ static gboolean gst_rtspsrc_stream_setup_rtp (GstRTSPStream * stream, gint * rtpport, gint * rtcpport) { - GstElement *rtpsrc; GstElementStateReturn ret; GstRTSPSrc *src; @@ -428,10 +427,9 @@ gst_rtspsrc_loop (GstRTSPSrc * src) gint channel; GList *lstream; GstRTSPStream *stream; - GstPadChainFunction chainfunc; GstPad *outpad = NULL; guint8 *data; - gint size; + guint size; do { GST_DEBUG ("doing reveive"); @@ -627,7 +625,6 @@ gst_rtspsrc_open (GstRTSPSrc * src) gchar *new; gint rtpport, rtcpport; gchar *trxparams; - gboolean res; /* allocate two udp ports */ if (!gst_rtspsrc_stream_setup_rtp (stream, &rtpport, &rtcpport)) @@ -730,7 +727,7 @@ setup_rtp_failed: } } -static gboolean +G_GNUC_UNUSED static gboolean gst_rtspsrc_close (GstRTSPSrc * src) { RTSPMessage request = { 0 }; diff --git a/gst/rtsp/rtspconnection.c b/gst/rtsp/rtspconnection.c index 9f5caa60..69557f05 100644 --- a/gst/rtsp/rtspconnection.c +++ b/gst/rtsp/rtspconnection.c @@ -152,7 +152,8 @@ rtsp_connection_send (RTSPConnection * conn, RTSPMessage * message) g_free (len); /* header ends here */ g_string_append (str, "\r\n"); - str = g_string_append_len (str, message->body, message->body_size); + str = + g_string_append_len (str, (gchar *) message->body, message->body_size); } else { /* just end headers */ g_string_append (str, "\r\n"); @@ -376,7 +377,7 @@ read_body (gint fd, glong content_length, RTSPMessage * msg) } done: - rtsp_message_set_body (msg, body, content_length); + rtsp_message_set_body (msg, (guint8 *) body, content_length); return RTSP_OK; @@ -545,4 +546,6 @@ rtsp_connection_free (RTSPConnection * conn) return RTSP_EINVAL; g_free (conn); + + return RTSP_OK; } -- cgit