From: <wi...@fr...> - 2005-06-29 16:27:45
|
CVS Root: /cvs/gstreamer Module: gst-plugins Changes by: wingo Date: Wed Jun 29 2005 09:27:40 PDT Log message: 2005-06-29 Andy Wingo <wi...@po...> * gst/udp/gstudpsink.c (gst_udpsink_get_type): Actually add the URI handler. * gst/udp/gstudpsrc.c (gst_udpsrc_start): (gst_udpsrc_create): Signedness. * gst/rtsp/sdpmessage.c (sdp_message_parse_buffer): Thanks compiler! (sdp_parse_line): Signedness fix. Modified files: . : ChangeLog gst/rtsp : rtsptransport.c sdpmessage.c gst/udp : gstudpsink.c gstudpsrc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog.diff?r1=1.1698&r2=1.1699 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/rtsp/rtsptransport.c.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/rtsp/sdpmessage.c.diff?r1=1.3&r2=1.4 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/udp/gstudpsink.c.diff?r1=1.35&r2=1.36 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/udp/gstudpsrc.c.diff?r1=1.34&r2=1.35 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins/ChangeLog,v retrieving revision 1.1698 retrieving revision 1.1699 diff -u -d -r1.1698 -r1.1699 --- ChangeLog 29 Jun 2005 16:14:29 -0000 1.1698 +++ ChangeLog 29 Jun 2005 16:27:27 -0000 1.1699 @@ -1,5 +1,15 @@ 2005-06-29 Andy Wingo <wi...@po...> + * gst/udp/gstudpsink.c (gst_udpsink_get_type): Actually add the + URI handler. + + * gst/udp/gstudpsrc.c (gst_udpsrc_start): + (gst_udpsrc_create): Signedness. + * gst/rtsp/sdpmessage.c (sdp_message_parse_buffer): Thanks + compiler! + (sdp_parse_line): Signedness fix. * configure.ac (GST_CFLAGS): GCC strikes back!!! Let the build breakage ensue!!! Index: rtsptransport.c RCS file: /cvs/gstreamer/gst-plugins/gst/rtsp/rtsptransport.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- rtsptransport.c 2 Jun 2005 13:26:36 -0000 1.2 +++ rtsptransport.c 29 Jun 2005 16:27:27 -0000 1.3 @@ -17,6 +17,9 @@ * Boston, MA 02111-1307, USA. */ +#include <string.h> +#include <stdlib.h> #include "rtsptransport.h" RTSPResult Index: sdpmessage.c RCS file: /cvs/gstreamer/gst-plugins/gst/rtsp/sdpmessage.c,v retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- sdpmessage.c 11 May 2005 12:01:10 -0000 1.3 +++ sdpmessage.c 29 Jun 2005 16:27:27 -0000 1.4 @@ -451,7 +451,7 @@ } SDPContext; static gboolean -sdp_parse_line (SDPContext * c, gchar type, guint8 * buffer) +sdp_parse_line (SDPContext * c, gchar type, gchar * buffer) { gchar str[4096]; gchar *p = buffer; @@ -575,8 +575,9 @@ c.state = SDP_SESSION; c.msg = msg; + c.media = NULL; - p = data; + p = (gchar *) data; while (TRUE) { while (g_ascii_isspace (*p)) p++; Index: gstudpsink.c RCS file: /cvs/gstreamer/gst-plugins/gst/udp/gstudpsink.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- gstudpsink.c 12 May 2005 15:32:51 -0000 1.35 +++ gstudpsink.c 29 Jun 2005 16:27:27 -0000 1.36 @@ -52,6 +52,9 @@ static void gst_udpsink_class_init (GstUDPSink * klass); static void gst_udpsink_init (GstUDPSink * udpsink); +static void gst_udpsink_uri_handler_init (gpointer g_iface, + gpointer iface_data); static void gst_udpsink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_udpsink_get_property (GObject * object, guint prop_id, @@ -79,10 +82,19 @@ (GInstanceInitFunc) gst_udpsink_init, NULL }; + static const GInterfaceInfo urihandler_info = { + gst_udpsink_uri_handler_init, + NULL, + NULL + }; udpsink_type = g_type_register_static (GST_TYPE_MULTIUDPSINK, "GstUDPSink", &udpsink_info, 0); + g_type_add_interface_static (udpsink_type, GST_TYPE_URI_HANDLER, + &urihandler_info); } return udpsink_type; } Index: gstudpsrc.c RCS file: /cvs/gstreamer/gst-plugins/gst/udp/gstudpsrc.c,v retrieving revision 1.34 diff -u -d -r1.34 -r1.35 --- gstudpsrc.c 28 Jun 2005 15:45:41 -0000 1.34 +++ gstudpsrc.c 29 Jun 2005 16:27:27 -0000 1.35 @@ -289,7 +289,7 @@ outbuf = gst_netbuffer_new (); - GST_BUFFER_DATA (outbuf) = pktdata; + GST_BUFFER_DATA (outbuf) = (guint8 *) pktdata; GST_BUFFER_SIZE (outbuf) = ret; gst_netaddress_set_ip4_address (&outbuf->from, tmpaddr.sin_addr.s_addr, @@ -420,7 +420,8 @@ guint bc_val; gint reuse; struct sockaddr_in my_addr; - int len, port; + guint len; + int port; GstUDPSrc *src; gint ret; |