[MPlayer-dev-eng] Re: [PATCH] demuxers: move resync_audio_stream call to demuxer.c

kiriuja mplayer-patches at en-directo.net
Sun Oct 16 13:46:03 CEST 2005


On Saturday 15 October 2005 05:30 Reimar Döffinger wrote:
> Well, even if it does not switch the track, it might have been doing
> something that might make a resync necessary.

The only thing the control does is assign demuxer->audio->sh and
demuxer->audio->id after making sure it can do that. It certainly
not going to switch codecs, much less queue any new packets, not
now nor in the future. For this reason both ds_free_packs and
resync_audio_stream need to be called after the control and only
if it actually switches tracks.

By the way, now that you are calling ds_free_packs in
demuxer_switch_audio, you can remove that call from the control
in demux_mpg.c and demux_mkv.c.

--
kiriuja




More information about the MPlayer-dev-eng mailing list