Changeset ed1a44b91e417768b0389eefb00e12f9a4d6252b
- Timestamp:
- 11/21/07 23:30:00
(10 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1195684200 +0000
- git-parent:
[6a440b7379fe87ed67f175893e2e7763d62e7ef6]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1195684200 +0000
- Message:
Patch by Glen Gray: Enable keepalive for Kasenna servers, they parse the User Agent string and check for _KA appended to the User Agent name.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6a440b7 |
red1a44b |
|
| 461 | 461 | } |
|---|
| 462 | 462 | |
|---|
| | 463 | /* Kasenna enables KeepAlive by analysing the User-Agent string. |
|---|
| | 464 | * Appending _KA to the string should be enough to enable this feature, |
|---|
| | 465 | * however, there is a bug where the _KA doesn't get parsed from the |
|---|
| | 466 | * default User-Agent as created by VLC/Live555 code. This is probably due |
|---|
| | 467 | * to spaces in the string or the string being too long. Here we override |
|---|
| | 468 | * the default string with a more compact version. |
|---|
| | 469 | */ |
|---|
| | 470 | if( var_CreateGetBool( p_demux, "rtsp-kasenna" )) |
|---|
| | 471 | { |
|---|
| | 472 | #if LIVEMEDIA_LIBRARY_VERSION_INT > 1130457500 |
|---|
| | 473 | p_sys->rtsp->setUserAgentString( "VLC_MEDIA_PLAYER_KA" ); |
|---|
| | 474 | #endif |
|---|
| | 475 | } |
|---|
| | 476 | |
|---|
| | 477 | |
|---|
| 463 | 478 | psz_url = (char*)malloc( strlen( p_sys->psz_path ) + 8 ); |
|---|
| 464 | 479 | if( !psz_url ) return VLC_ENOMEM; |
|---|