X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fvcdx%2Fdemux.c;h=8382d79148c35716e234fb42c3fc768d0b91626f;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=ad2ed56ae1f6e69c0654d00c510d2a67de5aafa1;hpb=39a7f7e696685c58885539226344c9c93e24fce5;p=vlc diff --git a/modules/access/vcdx/demux.c b/modules/access/vcdx/demux.c index ad2ed56ae1..8382d79148 100644 --- a/modules/access/vcdx/demux.c +++ b/modules/access/vcdx/demux.c @@ -1,10 +1,10 @@ /***************************************************************************** * demux.c: demux functions for dvdplay. ***************************************************************************** - * Copyright (C) 1998-2001 VideoLAN - * $Id: demux.c,v 1.3 2003/12/05 04:24:47 rocky Exp $ + * Copyright (C) 1998-2001 the VideoLAN team + * $Id$ * - * Author: Stéphane Borel + * Author: Stéphane Borel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,21 +18,17 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ -#include -#include -#include #include -#include -#include - -#include "../../demux/mpeg/system.h" +#include +#include +#include #ifdef HAVE_UNISTD_H # include @@ -41,7 +37,6 @@ #include #include #include -#include #include #ifdef STRNCASECMP_IN_STRINGS_H @@ -72,16 +67,16 @@ struct demux_sys_t }; /***************************************************************************** - * InitVCD: initializes structures + * VCDInit: initializes structures *****************************************************************************/ -int E_(InitVCD) ( vlc_object_t *p_this ) +int E_(VCDInit) ( vlc_object_t *p_this ) { input_thread_t *p_input = (input_thread_t *)p_this; - vcd_data_t * p_vcd = (vcd_data_t *)p_input->p_access_data; + vcd_data_t * p_vcd = (vcd_data_t *)p_input->p_sys; demux_sys_t * p_demux; - printf("++++ InitVCD CALLED\n"); - + printf("++++ VCDInit CALLED\n"); + if( p_input->stream.i_method != INPUT_METHOD_VCD ) { @@ -95,7 +90,7 @@ int E_(InitVCD) ( vlc_object_t *p_this ) } p_input->p_private = (void*)&p_demux->mpeg; - p_demux->p_module = module_Need( p_input, "mpeg-system", NULL ); + p_demux->p_module = module_Need( p_input, "mpeg-system", NULL, 0 ); if( p_demux->p_module == NULL ) { free( p_input->p_demux_data ); @@ -115,9 +110,9 @@ int E_(InitVCD) ( vlc_object_t *p_this ) } /***************************************************************************** - * EndVCD: frees unused data + * VCDEnd: frees unused data *****************************************************************************/ -void E_(EndVCD) ( vlc_object_t *p_this ) +void E_(VCDEnd) ( vlc_object_t *p_this ) { input_thread_t *p_input = (input_thread_t *)p_this; vcd_data_t * p_vcd = p_input->p_demux_data->p_vcd; @@ -178,7 +173,7 @@ static int Demux( input_thread_t * p_input ) pgrm_descriptor_t * p_pgrm; /* when we receive still_time flag, we have to pause immediately */ - input_SetStatus( p_input, INPUT_STATUS_PAUSE ); + var_SetInteger( p_input, "state", PAUSE_S ); vcdIntfStillTime( p_vcd->p_intf, p_vcd->i_still_time ); p_vcd->i_still_time = 0;