]> git.sesse.net Git - vlc/commitdiff
Fix previous commit
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 21 Aug 2007 19:22:41 +0000 (19:22 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 21 Aug 2007 19:22:41 +0000 (19:22 +0000)
modules/stream_out/rtp.c
src/network/httpd.c

index a1edc02443f8944b84fdcc432c681abf71c69e57..07e336ba7bae389ef6ca6584f1c5cdd88ad7fdc4 100644 (file)
@@ -1735,7 +1735,7 @@ static int  RtspCallback( httpd_callback_sys_t *p_args,
     httpd_MsgAdd( answer, "Server", PACKAGE_STRING );
     httpd_MsgAdd( answer, "Content-Length", "%d", answer->i_body );
     psz_cseq = httpd_MsgGet( query, "Cseq" );
-    httpd_MsgAdd( answer, "Cseq", "%u", psz_cseq ? psz_cseq : "0" );
+    httpd_MsgAdd( answer, "Cseq", "%s", psz_cseq ? psz_cseq : "0" );
     httpd_MsgAdd( answer, "Cache-Control", "%s", "no-cache" );
 
     if( psz_session )
index b7252cfc8c2c2e677efcc43a6698fd264ec9b621..f52a28efb5e06287a739bf9111110c7d73219b29 100644 (file)
@@ -2035,7 +2035,6 @@ static void httpd_HostThread( httpd_host_t *host )
                 else if( i_msg == HTTPD_MSG_OPTIONS )
                 {
                     const char *psz_cseq;
-                    int i_cseq;
 
                     /* unimplemented */
                     answer->i_proto  = query->i_proto ;
@@ -2047,11 +2046,7 @@ static void httpd_HostThread( httpd_host_t *host )
                     answer->p_body = NULL;
 
                     psz_cseq = httpd_MsgGet( query, "Cseq" );
-                    if( psz_cseq )
-                        i_cseq = atoi( psz_cseq );
-                    else
-                        i_cseq = 0;
-                    httpd_MsgAdd( answer, "Cseq", "%d", i_cseq );
+                    httpd_MsgAdd( answer, "Cseq", "%s", psz_cseq ? psz_cseq : "0" );
                     httpd_MsgAdd( answer, "Server", "VLC Server" );
                     httpd_MsgAdd( answer, "Public", "DESCRIBE, SETUP, "
                                  "TEARDOWN, PLAY, PAUSE" );