# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_sout.h>
#include <vlc_httpd.h>
free( rtsp->psz_path );
vlc_mutex_destroy( &rtsp->lock );
+
+ free( rtsp );
}
rtsp_session_t *ses;
answer->i_status = 200;
+ psz_session = httpd_MsgGet( query, "Session" );
+ const char *range = httpd_MsgGet (query, "Range");
+ if (range && strncmp (range, "npt=", 4))
+ {
+ answer->i_status = 501;
+ break;
+ }
+
vlc_mutex_lock( &rtsp->lock );
ses = RtspClientGet( rtsp, psz_session );
if( ses != NULL )
}
vlc_mutex_unlock( &rtsp->lock );
- httpd_MsgAdd( answer, "Range", "npt=now-" );
if( httpd_MsgGet( query, "Scale" ) != NULL )
httpd_MsgAdd( answer, "Scale", "1." );
break;