Changeset e179dadad0b9dad116aa1c000a77aefd1e5e22d6

Show
Ignore:
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
  • src/input/es_out.c

    r7b29b35 re179dad  
    10591059{ 
    10601060    es_out_sys_t *p_sys = out->p_sys; 
     1061    vlc_bool_t b_reselect = VLC_FALSE; 
     1062    int i; 
    10611063 
    10621064    /* We don't try to reselect */ 
     
    10741076        msg_Dbg( p_sys->p_input, "Program doesn't contain anymore ES" ); 
    10751077    } 
     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; 
    10761081 
    10771082    if( p_sys->p_es_audio == es ) p_sys->p_es_audio = NULL; 
     
    10911096            break; 
    10921097    } 
     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        } 
    10931106 
    10941107    if( es->psz_language )