]> git.sesse.net Git - vlc/commitdiff
RTSP: output proper Range: header
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 7 May 2008 15:41:47 +0000 (18:41 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 7 May 2008 16:10:25 +0000 (19:10 +0300)
modules/stream_out/rtsp.c

index 241fc3f41ffd5968d309a00d11958bc511f09fd0..8437c7379a04d4c7bcac8738c6ae4e413d643507 100644 (file)
@@ -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;