gst/realmedia/rtspreal.c: Add the version field when creating the CONT chunk resulting in the Author, Comment and Cop...

Original commit message from CVS:
Patch by: Pizpot Gargravarr <pgargravarr at siriuscybernetics dot org>
* gst/realmedia/rtspreal.c: (rtsp_ext_real_parse_sdp):
Add the version field when creating the CONT chunk resulting in
the Author, Comment and Copyright tags not being parsed correctly.
Fixes #521459.
This commit is contained in:
Pizpot Gargravarr 2008-03-10 15:17:24 +00:00 committed by Wim Taymans
parent 9142cfca7f
commit 4c646533fa
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2008-03-10 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Pizpot Gargravarr <pgargravarr at siriuscybernetics dot org>
* gst/realmedia/rtspreal.c: (rtsp_ext_real_parse_sdp):
Add the version field when creating the CONT chunk resulting in
the Author, Comment and Copyright tags not being parsed correctly.
Fixes #521459.
2008-03-10 Wim Taymans <wim.taymans@collabora.co.uk> 2008-03-10 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/mpegaudioparse/gstmpegaudioparse.c: * gst/mpegaudioparse/gstmpegaudioparse.c:

View file

@ -331,13 +331,14 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp,
READ_BUFFER (sdp, "Comment", comment, comment_len); READ_BUFFER (sdp, "Comment", comment, comment_len);
READ_BUFFER (sdp, "Copyright", copyright, copyright_len); READ_BUFFER (sdp, "Copyright", copyright, copyright_len);
size = 20 + title_len + author_len + comment_len + copyright_len; size = 22 + title_len + author_len + comment_len + copyright_len;
ENSURE_SIZE (offset + size); ENSURE_SIZE (offset + size);
datap = data + offset; datap = data + offset;
memcpy (datap, "CONT", 4); memcpy (datap, "CONT", 4);
GST_WRITE_UINT32_BE (datap + 4, size); GST_WRITE_UINT32_BE (datap + 4, size);
datap += 8; GST_WRITE_UINT16_BE (datap + 8, 0); /* Version */
datap += 10;
WRITE_STRING2 (datap, title, title_len); WRITE_STRING2 (datap, title, title_len);
WRITE_STRING2 (datap, author, author_len); WRITE_STRING2 (datap, author, author_len);
WRITE_STRING2 (datap, copyright, copyright_len); WRITE_STRING2 (datap, copyright, copyright_len);