Changeset 2c5cd248e79197b1c2b181871946135f876c3bc9
- Timestamp:
- 11/02/08 16:45:53
(10 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1202744753 +0000
- git-parent:
[daebd34f56afba8df79d2ddc396950cb13cf0930]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1202744753 +0000
- Message:
Simplify rc stats command
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r70ac3d9 |
r2c5cd24 |
|
| 127 | 127 | vlc_mutex_t status_lock; |
|---|
| 128 | 128 | playlist_status_t i_last_state; |
|---|
| 129 | | vlc_bool_t b_statistics; |
|---|
| 130 | 129 | |
|---|
| 131 | 130 | #ifdef WIN32 |
|---|
| … | … | |
| 325 | 324 | vlc_mutex_init( p_intf, &p_intf->p_sys->status_lock ); |
|---|
| 326 | 325 | p_intf->p_sys->i_last_state = PLAYLIST_STOPPED; |
|---|
| 327 | | p_intf->p_sys->b_statistics = VLC_FALSE; |
|---|
| 328 | 326 | |
|---|
| 329 | 327 | /* Non-buffered stdout */ |
|---|
| … | … | |
| 582 | 580 | msg_rc( "pos: %d%%", i_newpos ); |
|---|
| 583 | 581 | } |
|---|
| 584 | | } |
|---|
| 585 | | |
|---|
| 586 | | if( p_input && p_intf->p_sys->b_statistics ) |
|---|
| 587 | | { |
|---|
| 588 | | vlc_mutex_lock( &input_GetItem(p_input)->lock ); |
|---|
| 589 | | updateStatistics( p_intf, input_GetItem(p_input) ); |
|---|
| 590 | | vlc_mutex_unlock( &input_GetItem(p_input)->lock ); |
|---|
| 591 | 582 | } |
|---|
| 592 | 583 | |
|---|
| … | … | |
| 1960 | 1951 | if( !strcmp( psz_cmd, "stats" ) ) |
|---|
| 1961 | 1952 | { |
|---|
| 1962 | | p_intf->p_sys->b_statistics = !p_intf->p_sys->b_statistics; |
|---|
| 1963 | | if( p_intf->p_sys->b_statistics ) |
|---|
| 1964 | | msg_rc(_("statistics update on")); |
|---|
| 1965 | | else |
|---|
| 1966 | | msg_rc(_("statistics update off")); |
|---|
| | 1953 | vlc_mutex_lock( &input_GetItem(p_input)->lock ); |
|---|
| | 1954 | updateStatistics( p_intf, input_GetItem(p_input) ); |
|---|
| | 1955 | vlc_mutex_unlock( &input_GetItem(p_input)->lock ); |
|---|
| 1967 | 1956 | } |
|---|
| 1968 | 1957 | /* |
|---|