diff options
author | Pizpot Gargravarr <pgargravarr@siriuscybernetics.org> | 2008-03-10 15:17:24 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-03-10 15:17:24 +0000 |
commit | 4c646533fac40b57414d330252f78b1f737a09a9 (patch) | |
tree | 454a2b3bd073b681d45d6b6b801347fb58e33d54 | |
parent | 9142cfca7f8335e74db291e611d3606f0e023865 (diff) |
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.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | gst/realmedia/rtspreal.c | 5 |
2 files changed, 12 insertions, 2 deletions
@@ -1,5 +1,14 @@ 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> + * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_sink_event), (gst_mp3parse_chain): Remove trailing newlines from debug statements. diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index db9a3068..3283c79b 100644 --- a/gst/realmedia/rtspreal.c +++ b/gst/realmedia/rtspreal.c @@ -331,13 +331,14 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, READ_BUFFER (sdp, "Comment", comment, comment_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); datap = data + offset; memcpy (datap, "CONT", 4); 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, author, author_len); WRITE_STRING2 (datap, copyright, copyright_len); |