[vlc-devel] commit: Fixed audio-desync support and simplified (close #3253). ( Laurent Aimar )
git version control
git at videolan.org
Sun Feb 14 18:11:29 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 14 18:09:19 2010 +0100| [f1a5feea6eb4e459f8682c90daf5bac181c75e7d] | committer: Laurent Aimar
Fixed audio-desync support and simplified (close #3253).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1a5feea6eb4e459f8682c90daf5bac181c75e7d
---
src/input/input.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 9eb05d9..9b737f4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1138,6 +1138,8 @@ static void UpdatePtsDelay( input_thread_t *p_input )
const int i_cr_average = var_GetInteger( p_input, "cr-average" ) * i_pts_delay / DEFAULT_PTS_DELAY;
/* */
+ es_out_SetDelay( p_input->p->p_es_out_display, AUDIO_ES, i_audio_delay );
+ es_out_SetDelay( p_input->p->p_es_out_display, SPU_ES, i_spu_delay );
es_out_SetJitter( p_input->p->p_es_out, i_pts_delay, i_cr_average );
}
@@ -1920,13 +1922,11 @@ static bool Control( input_thread_t *p_input,
break;
case INPUT_CONTROL_SET_AUDIO_DELAY:
- es_out_SetDelay( p_input->p->p_es_out_display, AUDIO_ES, val.i_time );
input_SendEventAudioDelay( p_input, val.i_time );
UpdatePtsDelay( p_input );
break;
case INPUT_CONTROL_SET_SPU_DELAY:
- es_out_SetDelay( p_input->p->p_es_out_display, SPU_ES, val.i_time );
input_SendEventSubtitleDelay( p_input, val.i_time );
UpdatePtsDelay( p_input );
break;
More information about the vlc-devel
mailing list