Commit 331df5b8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix previous commit

parent a92c4fff
......@@ -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 )
......
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment