From 41d8d0bec7477ac4340f6c647019f7dc418f27f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Fri, 11 Sep 2009 11:30:36 +0200 Subject: [PATCH] vod preparsing : if muxer is specified, only wait for input_item_IsPreparsed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/input/vlm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/vlm.c b/src/input/vlm.c index 8acce0c7e4..7fb098da9d 100644 --- a/src/input/vlm.c +++ b/src/input/vlm.c @@ -75,7 +75,8 @@ static int InputEventPreparse( vlc_object_t *p_this, char const *psz_cmd, VLC_UNUSED(p_this); VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval); vlc_sem_t *p_sem_preparse = p_data; - if( newval.i_int == INPUT_EVENT_DEAD ) + if( newval.i_int == INPUT_EVENT_DEAD || + newval.i_int == INPUT_EVENT_ITEM_META ) vlc_sem_post( p_sem_preparse ); return VLC_SUCCESS; @@ -574,7 +575,7 @@ static int vlm_OnMediaUpdate( vlm_t *p_vlm, vlm_media_sys_t *p_media ) vlc_sem_init( &sem_preparse, 0 ); var_AddCallback( p_input, "intf-event", InputEventPreparse, &sem_preparse ); - if( !p_input->b_dead ) + while( !p_input->b_dead && ( !p_cfg->vod.psz_mux || !input_item_IsPreparsed( p_media->vod.p_item ) ) ) vlc_sem_wait( &sem_preparse ); var_DelCallback( p_input, "intf-event", InputEventPreparse, &sem_preparse ); -- 2.39.5