[MPlayer-cvslog] r36834 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Fri Feb 14 22:34:07 CET 2014
Author: reimar
Date: Fri Feb 14 22:34:07 2014
New Revision: 36834
Log:
Remove DVDNAV audio reset code to avoid issues on title changes.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Fri Feb 14 22:34:06 2014 (r36833)
+++ trunk/mplayer.c Fri Feb 14 22:34:07 2014 (r36834)
@@ -1953,15 +1953,12 @@ static void mp_dvdnav_reset_stream(MPCon
ctx->demuxer->stream_pts = MP_NOPTS_VALUE;
}
- if (ctx->sh_audio) {
- // free audio packets and reset
- ds_free_packs(ctx->d_audio);
- audio_delay -= ctx->sh_audio->stream_delay;
- ctx->delay = -audio_delay;
- ctx->audio_out->reset();
- resync_audio_stream(ctx->sh_audio);
- }
-
+ // This is necessary to make video start in sync after
+ // a still frame. But do not discard pending audio packets,
+ // that causes issues since this code is also called on
+ // title changes (which is possibly a bug in itself *sigh*),
+ // and thus cause tiny audio skips.
+ ctx->delay = -audio_delay;
audio_delay = 0.0f;
mpctx->sub_counts[SUB_SOURCE_DEMUX] = mp_dvdnav_number_of_subs(mpctx->stream);
if (dvdsub_lang && dvdsub_id == dvdsub_lang_id) {
More information about the MPlayer-cvslog
mailing list