[vlc-devel] commit: RTSP: output proper Range: header ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed May 7 18:09:10 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May 7 18:41:47 2008 +0300| [fe182634ea51564a9f1374eb337b27890da15ef0]
RTSP: output proper Range: header
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe182634ea51564a9f1374eb337b27890da15ef0
---
modules/stream_out/rtsp.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index 241fc3f..8437c73 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -600,15 +600,6 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
rtsp_session_t *ses;
answer->i_status = 200;
- psz_session = httpd_MsgGet( query, "Session" );
-#if 0
- /* FIXME: This breaks totem, mplayer and quicktime at least */
- if( httpd_MsgGet( query, "Range" ) != NULL )
- {
- answer->i_status = 456; /* cannot seek, stream not seekable */
- break;
- }
-#endif
vlc_mutex_lock( &rtsp->lock );
ses = RtspClientGet( rtsp, psz_session );
if( ses != NULL )
@@ -642,6 +633,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
}
vlc_mutex_unlock( &rtsp->lock );
+ httpd_MsgAdd( answer, "Range", "npt=now-" );
if( httpd_MsgGet( query, "Scale" ) != NULL )
httpd_MsgAdd( answer, "Scale", "1." );
break;
More information about the vlc-devel
mailing list