Changeset 232337c3a3aba420a779aeb61b1dfbff267b6e6f
- Timestamp:
- 12/05/08 13:46:01
(5 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1210592761 +0200
- git-parent:
[643f11c411510d757f898ad790dc4253142aa62b]
- git-author:
- Rafaël Carré <funman@videolan.org> 1210592761 +0200
- Message:
Fix #1581 - Really fix #986 - rc : do not read stdin when we can't
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r643f11c |
r232337c |
|
| 142 | 142 | if( p_intf->p_sys->i_socket == -1 ) |
|---|
| 143 | 143 | { |
|---|
| 144 | | utf8_vfprintf( stdout, psz_fmt, args ); |
|---|
| 145 | | printf( "\r\n" ); |
|---|
| | 144 | if( !p_intf->p_sys->pi_socket_listen ) |
|---|
| | 145 | { |
|---|
| | 146 | utf8_vfprintf( stdout, psz_fmt, args ); |
|---|
| | 147 | printf( "\r\n" ); |
|---|
| | 148 | } |
|---|
| 146 | 149 | } |
|---|
| 147 | 150 | else |
|---|
| … | … | |
| 2298 | 2301 | #endif |
|---|
| 2299 | 2302 | |
|---|
| | 2303 | if( p_intf->p_sys->i_socket == -1 && p_intf->p_sys->pi_socket_listen ) |
|---|
| | 2304 | { |
|---|
| | 2305 | /* Do not try to read stdin if we are listening on a socket */ |
|---|
| | 2306 | msleep( INTF_IDLE_SLEEP ); |
|---|
| | 2307 | return VLC_FALSE; |
|---|
| | 2308 | } |
|---|
| | 2309 | |
|---|
| 2300 | 2310 | while( !p_intf->b_die && *pi_size < MAX_LINE_LENGTH && |
|---|
| 2301 | 2311 | (i_read = net_ReadNonBlock( p_intf, p_intf->p_sys->i_socket == -1 ? |
|---|