summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/sdpmessage.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtsp/sdpmessage.c')
-rw-r--r--gst/rtsp/sdpmessage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/rtsp/sdpmessage.c b/gst/rtsp/sdpmessage.c
index dda12eb9..16dd84a7 100644
--- a/gst/rtsp/sdpmessage.c
+++ b/gst/rtsp/sdpmessage.c
@@ -451,7 +451,7 @@ typedef struct
} 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 @@ sdp_message_parse_buffer (guint8 * data, guint size, SDPMessage * msg)
c.state = SDP_SESSION;
c.msg = msg;
+ c.media = NULL;
- p = data;
+ p = (gchar *) data;
while (TRUE) {
while (g_ascii_isspace (*p))
p++;