Changeset e179dadad0b9dad116aa1c000a77aefd1e5e22d6
- Timestamp:
- 22/08/05 22:24:20
(3 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1124742260 +0000
- git-parent:
[630e3b7ad8edfd92e263ccaf13c14e3a6e50ab74]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1124742260 +0000
- Message:
* src/input/es_out.c: when removing an active track, re-run the track selection algo.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7b29b35 |
re179dad |
|
| 1059 | 1059 | { |
|---|
| 1060 | 1060 | es_out_sys_t *p_sys = out->p_sys; |
|---|
| | 1061 | vlc_bool_t b_reselect = VLC_FALSE; |
|---|
| | 1062 | int i; |
|---|
| 1061 | 1063 | |
|---|
| 1062 | 1064 | /* We don't try to reselect */ |
|---|
| … | … | |
| 1074 | 1076 | msg_Dbg( p_sys->p_input, "Program doesn't contain anymore ES" ); |
|---|
| 1075 | 1077 | } |
|---|
| | 1078 | |
|---|
| | 1079 | if( p_sys->p_es_audio == es || p_sys->p_es_video == es || |
|---|
| | 1080 | p_sys->p_es_sub == es ) b_reselect = VLC_TRUE; |
|---|
| 1076 | 1081 | |
|---|
| 1077 | 1082 | if( p_sys->p_es_audio == es ) p_sys->p_es_audio = NULL; |
|---|
| … | … | |
| 1091 | 1096 | break; |
|---|
| 1092 | 1097 | } |
|---|
| | 1098 | |
|---|
| | 1099 | /* Re-select another track when needed */ |
|---|
| | 1100 | if( b_reselect ) |
|---|
| | 1101 | for( i = 0; i < p_sys->i_es; i++ ) |
|---|
| | 1102 | { |
|---|
| | 1103 | if( es->fmt.i_cat == p_sys->es[i]->fmt.i_cat ) |
|---|
| | 1104 | EsOutSelect( out, p_sys->es[i], VLC_FALSE ); |
|---|
| | 1105 | } |
|---|
| 1093 | 1106 | |
|---|
| 1094 | 1107 | if( es->psz_language ) |
|---|