mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
gst/udp/gstudpsink.c (gst_udpsink_get_type): Actually add the
Original commit message from CVS: 2005-06-29 Andy Wingo <wingo@pobox.com> * 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.
This commit is contained in:
parent
2d109a18fb
commit
d9b7ddd426
5 changed files with 31 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,5 +1,15 @@
|
||||||
2005-06-29 Andy Wingo <wingo@pobox.com>
|
2005-06-29 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* 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
|
* configure.ac (GST_CFLAGS): GCC strikes back!!! Let the build
|
||||||
breakage ensue!!!
|
breakage ensue!!!
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "rtsptransport.h"
|
#include "rtsptransport.h"
|
||||||
|
|
||||||
RTSPResult
|
RTSPResult
|
||||||
|
|
|
@ -451,7 +451,7 @@ typedef struct
|
||||||
} SDPContext;
|
} SDPContext;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
sdp_parse_line (SDPContext * c, gchar type, guint8 * buffer)
|
sdp_parse_line (SDPContext * c, gchar type, gchar * buffer)
|
||||||
{
|
{
|
||||||
gchar str[4096];
|
gchar str[4096];
|
||||||
gchar *p = buffer;
|
gchar *p = buffer;
|
||||||
|
@ -575,8 +575,9 @@ sdp_message_parse_buffer (guint8 * data, guint size, SDPMessage * msg)
|
||||||
|
|
||||||
c.state = SDP_SESSION;
|
c.state = SDP_SESSION;
|
||||||
c.msg = msg;
|
c.msg = msg;
|
||||||
|
c.media = NULL;
|
||||||
|
|
||||||
p = data;
|
p = (gchar *) data;
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
while (g_ascii_isspace (*p))
|
while (g_ascii_isspace (*p))
|
||||||
p++;
|
p++;
|
||||||
|
|
|
@ -52,6 +52,9 @@ static void gst_udpsink_base_init (gpointer g_class);
|
||||||
static void gst_udpsink_class_init (GstUDPSink * klass);
|
static void gst_udpsink_class_init (GstUDPSink * klass);
|
||||||
static void gst_udpsink_init (GstUDPSink * udpsink);
|
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,
|
static void gst_udpsink_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_udpsink_get_property (GObject * object, guint prop_id,
|
static void gst_udpsink_get_property (GObject * object, guint prop_id,
|
||||||
|
@ -79,10 +82,19 @@ gst_udpsink_get_type (void)
|
||||||
(GInstanceInitFunc) gst_udpsink_init,
|
(GInstanceInitFunc) gst_udpsink_init,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
static const GInterfaceInfo urihandler_info = {
|
||||||
|
gst_udpsink_uri_handler_init,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
udpsink_type =
|
udpsink_type =
|
||||||
g_type_register_static (GST_TYPE_MULTIUDPSINK, "GstUDPSink",
|
g_type_register_static (GST_TYPE_MULTIUDPSINK, "GstUDPSink",
|
||||||
&udpsink_info, 0);
|
&udpsink_info, 0);
|
||||||
|
|
||||||
|
g_type_add_interface_static (udpsink_type, GST_TYPE_URI_HANDLER,
|
||||||
|
&urihandler_info);
|
||||||
|
|
||||||
}
|
}
|
||||||
return udpsink_type;
|
return udpsink_type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,7 +289,7 @@ gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
outbuf = gst_netbuffer_new ();
|
outbuf = gst_netbuffer_new ();
|
||||||
GST_BUFFER_DATA (outbuf) = pktdata;
|
GST_BUFFER_DATA (outbuf) = (guint8 *) pktdata;
|
||||||
GST_BUFFER_SIZE (outbuf) = ret;
|
GST_BUFFER_SIZE (outbuf) = ret;
|
||||||
|
|
||||||
gst_netaddress_set_ip4_address (&outbuf->from, tmpaddr.sin_addr.s_addr,
|
gst_netaddress_set_ip4_address (&outbuf->from, tmpaddr.sin_addr.s_addr,
|
||||||
|
@ -420,7 +420,8 @@ gst_udpsrc_start (GstBaseSrc * bsrc)
|
||||||
guint bc_val;
|
guint bc_val;
|
||||||
gint reuse;
|
gint reuse;
|
||||||
struct sockaddr_in my_addr;
|
struct sockaddr_in my_addr;
|
||||||
int len, port;
|
guint len;
|
||||||
|
int port;
|
||||||
GstUDPSrc *src;
|
GstUDPSrc *src;
|
||||||
gint ret;
|
gint ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue