Changeset 75f050b3c60cf51ca70de494b8a9e3b7f7b12e02
- Timestamp:
- 05/07/08 18:38:48
(2 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1210178328 +0300
- git-parent:
[d8023cde60406013265bdd5aaa6ab69b352b5de2]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1210178328 +0300
- Message:
Fix Range handling
In RTSP/1.0, don't return any range (as far as I understand).
In RTSP/2.0, we'd have to compute the time from the beginning.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd8c68f7 |
r75f050b |
|
| 620 | 620 | answer->i_status = 200; |
|---|
| 621 | 621 | |
|---|
| | 622 | psz_session = httpd_MsgGet( query, "Session" ); |
|---|
| | 623 | const char *range = httpd_MsgGet (query, "Range"); |
|---|
| | 624 | if (range && strncmp (range, "npt=", 4)) |
|---|
| | 625 | { |
|---|
| | 626 | answer->i_status = 501; |
|---|
| | 627 | break; |
|---|
| | 628 | } |
|---|
| | 629 | |
|---|
| 622 | 630 | vlc_mutex_lock( &rtsp->lock ); |
|---|
| 623 | 631 | ses = RtspClientGet( rtsp, psz_session ); |
|---|
| … | … | |
| 653 | 661 | vlc_mutex_unlock( &rtsp->lock ); |
|---|
| 654 | 662 | |
|---|
| 655 | | httpd_MsgAdd( answer, "Range", "npt=now-" ); |
|---|
| 656 | 663 | if( httpd_MsgGet( query, "Scale" ) != NULL ) |
|---|
| 657 | 664 | httpd_MsgAdd( answer, "Scale", "1." ); |
|---|