Changeset 5ffe7e0054f5483e898ca3945762dfe1f8959581
- Timestamp:
- 12/06/07 16:33:45
(9 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1196955225 +0000
- git-parent:
[2a40307cee22c2eaac173647a21c617da5560d75]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1196955225 +0000
- Message:
Don't call input_ChangeState() constantly while being in error state, because it triggers callbacks at each call. This can result in a busy rc interface.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcedd80b |
r5ffe7e0 |
|
| 836 | 836 | /* Create a new one */ |
|---|
| 837 | 837 | p_input->p->p_sout = sout_NewInstance( p_input, psz ); |
|---|
| 838 | | |
|---|
| 839 | 838 | if( !p_input->p->p_sout ) |
|---|
| 840 | 839 | { |
|---|
| … | … | |
| 1254 | 1253 | static void Error( input_thread_t *p_input ) |
|---|
| 1255 | 1254 | { |
|---|
| | 1255 | input_ChangeState( p_input, ERROR_S ); |
|---|
| 1256 | 1256 | while( !p_input->b_die ) |
|---|
| 1257 | 1257 | { |
|---|
| 1258 | 1258 | /* Sleep a while */ |
|---|
| 1259 | | input_ChangeState( p_input, ERROR_S ); |
|---|
| 1260 | 1259 | msleep( INPUT_IDLE_SLEEP ); |
|---|
| 1261 | 1260 | } |
|---|