Mercurial > mplayer.hg
changeset 20952:9f972d3318a6
reset demuxer's buffered demux_packet after DEMUXER_CTRL_SWITCH_AUDIO
author | nicodvb |
---|---|
date | Thu, 16 Nov 2006 21:31:44 +0000 |
parents | 55798b61b8ca |
children | fdfc939908ef |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Thu Nov 16 21:30:35 2006 +0000 +++ b/libmpdemux/demux_ts.c Thu Nov 16 21:31:44 2006 +0000 @@ -3209,6 +3209,8 @@ if(sh_a) { + if(demuxer->audio->id != priv->ts.streams[i].id) + reset_fifos(priv, 1, 0, 0); demuxer->audio->id = priv->ts.streams[i].id; demuxer->audio->sh = sh_a; ds_free_packs(demuxer->audio);