Changeset cf1164faba5e9c7cf8c05d32c1ab6373cb1095a4

Show
Ignore:
Timestamp:
07/25/02 22:34:35 (6 years ago)
Author:
Stéphane Borel <stef@videolan.org>
git-committer:
Stéphane Borel <stef@videolan.org> 1027629275 +0000
git-parent:

[44ed9d3c02dfa173cf3996a9512f4e8b82691e8a]

git-author:
Stéphane Borel <stef@videolan.org> 1027629275 +0000
Message:

*Use dvdplay after it has completed initialisation. It should avoid
some corruption leading to evil crash :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/dvdplay/access.c

    r8a430a8 rcf1164f  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: access.c,v 1.1 2002/07/23 19:56:19 stef Exp $ 
     5 * $Id: access.c,v 1.2 2002/07/25 20:34:35 stef Exp $ 
    66 * 
    77 * Author: St�ane Borel <stef@via.ecp.fr> 
     
    276276        int i_chapter; 
    277277         
     278        /* prevent intf to try to seek */ 
     279        p_input->stream.b_seekable = 0; 
     280         
    278281        /* Store selected chapter */ 
    279282        i_chapter = p_area->i_part; 
     
    282285         
    283286        dvdplay_start( p_dvd->vmg, p_area->i_id ); 
    284  
     287         
    285288        p_area->i_part = i_chapter; 
    286289    } /* i_title >= 0 */ 
     
    386389        break; 
    387390    case NEW_PGC: 
     391        /* prevent intf to try to seek  by default */ 
     392        p_input->stream.b_seekable = 0; 
     393 
    388394        if( ( i = dvdplay_title_cur( p_dvd->vmg ) ) !=  
    389395                p_input->stream.p_selected_area->i_id ) 
     
    395401                        p_input->stream.pp_areas[i] ); 
    396402        } 
    397         else 
    398         { 
    399             /* new pgc in same title: reinit ES */ 
    400             dvdNewPGC( p_input ); 
    401              
    402             p_input->stream.b_changed = 1; 
    403         } 
     403 
     404        /* new pgc in same title: reinit ES */ 
     405        dvdNewPGC( p_input ); 
     406         
     407        p_input->stream.b_changed = 1; 
    404408 
    405409        break; 
     
    465469     
    466470    dvdplay_SetProgram( p_input, 
    467                        p_input->stream.pp_programs[i_angle-1] );  
    468  
    469     dvdNewPGC( p_input ); 
     471                        p_input->stream.pp_programs[i_angle-1] );  
     472 
     473//    dvdNewPGC( p_input ); 
    470474 
    471475    /* No PSM to read in DVD mode, we already have all information */