From 32414c55fdfa77f9b30b4c6d5802bea801f08fc6 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Fri, 28 Jan 2000 02:10:08 +0000 Subject: [PATCH] =?UTF-8?q?*=20Correction=20d'un=20message=20d'erreur=20er?= =?UTF-8?q?ronn=EF=BF=BD=20dans=20l'input=20;=20*=20Correction=20d'un=20bu?= =?UTF-8?q?g=20de=20synchro=20;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/config.h | 2 +- src/input/input.c | 3 +++ src/input/input_ctrl.c | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/config.h b/include/config.h index e14fe45afb..e66a769956 100644 --- a/include/config.h +++ b/include/config.h @@ -281,7 +281,7 @@ #define VPAR_IDLE_SLEEP 100000 /* Time to sleep when waiting for a buffer (from vout or the video fifo). */ -#define VPAR_OUTMEM_SLEEP 50000 +#define VPAR_OUTMEM_SLEEP 10000 /* Optimization level, from 0 to 2 - 1 is generally a good compromise. Remember * that raising this level dramatically lengthens the compilation time. */ diff --git a/src/input/input.c b/src/input/input.c index effc49daed..8e872677df 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -412,6 +412,9 @@ static void EndThread( input_thread_t * p_input ) case AC3_AUDIO_ES: ac3dec_DestroyThread( (ac3dec_thread_t *)(p_input->pp_selected_es[i_es_loop]->p_dec) ); break; + case 0: + /* Special streams for the PSI decoder, PID 0 and 1 */ + break; #ifdef DEBUG default: intf_DbgMsg("error: unknown decoder type %d\n", p_input->pp_selected_es[i_es_loop]->i_type ); diff --git a/src/input/input_ctrl.c b/src/input/input_ctrl.c index 3f3ac483bd..4a9b46d835 100644 --- a/src/input/input_ctrl.c +++ b/src/input/input_ctrl.c @@ -127,7 +127,6 @@ int input_AddPgrmElem( input_thread_t *p_input, int i_current_id ) case MPEG1_VIDEO_ES: case MPEG2_VIDEO_ES: /* Spawn video thread. */ -/* Les 2 pointeurs NULL ne doivent pas etre NULL sinon on segfault !!!! */ #ifdef OLD_DECODER if( ((vdec_thread_t*)(p_input->p_es[i_es_loop].p_dec) = vdec_CreateThread( p_input )) == NULL )