mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
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
This commit is contained in:
parent
6a0ab89e43
commit
ced53d9d19
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user