diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-16 21:31:44 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-16 21:31:44 +0000 |
commit | ced53d9d19a33fb5972f816962bf6d115fa56f20 (patch) | |
tree | b6e7db9968ca5e21ae9c306991859dec5e0c74f0 /libmpdemux | |
parent | 6a0ab89e434b5f2e2e1370aa6932ea25d3c8630e (diff) |
reset demuxer's buffered demux_packet after DEMUXER_CTRL_SWITCH_AUDIO
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20968 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_ts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 6d2a3480aa..124ebf1c95 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -3209,6 +3209,8 @@ static int demux_ts_control(demuxer_t *demuxer, int cmd, void *arg) 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); |