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

rtsp: fix timeout value and format string

The protocol requires seconds.

Regression from 1c8acb06
parent feeac212
......@@ -69,7 +69,7 @@ struct rtsp_stream_t
int sessionc;
rtsp_session_t **sessionv;
mtime_t timeout;
unsigned timeout;
vlc_timer_t timer;
};
......@@ -1195,7 +1195,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
if( psz_session )
{
if (rtsp->timeout > 0)
httpd_MsgAdd( answer, "Session", "%s;timeout=%d", psz_session,
httpd_MsgAdd( answer, "Session", "%s;timeout=%u", psz_session,
rtsp->timeout );
else
httpd_MsgAdd( answer, "Session", "%s", psz_session );
......
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