Changeset d0cd61dd25dcb01340ae257b861563bfca401fb9
- Timestamp:
- 25/11/07 11:26:42
(11 months ago)
- Author:
- Dennis van Amerongen <trax@videolan.org>
- git-committer:
- Dennis van Amerongen <trax@videolan.org> 1195986402 +0000
- git-parent:
[6b4c45d2549adf181f3f4607dedcaf6f2b4a66a3]
- git-author:
- Dennis van Amerongen <trax@videolan.org> 1195986402 +0000
- Message:
* modules/access_output/shout.c: let this be a lesson for all you kids out there - think before.. ehr.. sync before you shout! (in case the buffer isn't empty after reconnect approach, allows for smoother transition).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r918e176 |
rd0cd61d |
|
| 493 | 493 | shout_get_error(p_access->p_sys->p_shout) ); |
|---|
| 494 | 494 | |
|---|
| 495 | | /* This can be caused by a server disconnect. Reconnecting might help... */ |
|---|
| | 495 | /* The most common cause seems to be a server disconnect, resulting in a |
|---|
| | 496 | Socket Error which can only be fixed by closing and reconnecting. |
|---|
| | 497 | Since we already began with a working connection, the most feasable |
|---|
| | 498 | approach to get out of this error status is a (timed) reconnect approach. */ |
|---|
| 496 | 499 | shout_close( p_access->p_sys->p_shout ); |
|---|
| 497 | 500 | msg_Warn( p_access, "server unavailable? waiting 30 seconds to reconnect..." ); |
|---|
| 498 | 501 | msleep( 30000000 ); |
|---|
| | 502 | /* Re-open the connection (protocol params have already been set) and re-sync */ |
|---|
| 499 | 503 | if( shout_open( p_access->p_sys->p_shout ) == SHOUTERR_SUCCESS ) |
|---|
| 500 | 504 | { |
|---|
| | 505 | shout_sync( p_access->p_sys->p_shout ); |
|---|
| 501 | 506 | msg_Warn( p_access, "reconnected to server" ); |
|---|
| 502 | 507 | } |
|---|