]> git.sesse.net Git - vlc/commitdiff
Fix: Quicktime 404 error on RTSP SETUP. Patch by Brian Raymon <braymon _at_ echostrom...
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 26 Sep 2006 07:04:30 +0000 (07:04 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 26 Sep 2006 07:04:30 +0000 (07:04 +0000)
THANKS
modules/stream_out/rtp.c

diff --git a/THANKS b/THANKS
index 187c2b7710b9d7aa728ea66cb575c83951051618..bbd8512ba1ceb05e47fdc2327f733b13b0805ab0 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -29,6 +29,7 @@ Benoit Steiner <benny at via.ecp.fr> - MPEG system input, network input
 Bill Eldridge <bill at rfa.org> - documentation
 Bob Maguire <maguirer at rjmaguire dot com> - addition of some controls to the OSX interface
 Brian Robb <vascy at hotmail dot com> - win32 CD/DVD drive detection in wx, bug fixes
+Brian Raymond <braymond at echostorm dot net> - Quicktime 404 error on RTSP SETUP fix
 Brieuc Jeunhomme <bbp at via.ecp.fr> - bug fixes
 Bruno Vella <allevb at tin.it> - Italian localization
 Carlo CalabrĂ² <murray at via.ecp.fr> - Italian localization
index c3ab404df335d3d414fc90dced4f2bdde0efd63f..314a222f365a69200fe61dae234bc11c62918f3d 100644 (file)
@@ -24,6 +24,8 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#include "config.h"
+#include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
@@ -1154,8 +1156,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
             {
                 uint8_t *p_buffer = p_fmt->p_extra;
                 int     i_buffer = p_fmt->i_extra;
-                char    *p_64_sps;
-                char    *p_64_pps;
+                char    *p_64_sps = NULL;
+                char    *p_64_pps = NULL;
                 char    hexa[6];
                 
                 while( i_buffer > 4 && 
@@ -1729,7 +1731,7 @@ static int  RtspCallback( httpd_callback_sys_t *p_args,
             answer->i_status = 200;
             answer->psz_status = strdup( "OK" );
             httpd_MsgAdd( answer, "Content-type",  "%s", "application/sdp" );
-
+           httpd_MsgAdd( answer, "Content-Base",  "%s/", p_sys->psz_rtsp_control );
             answer->p_body = (uint8_t *)psz_sdp;
             answer->i_body = strlen( psz_sdp );
             break;