mirror of https://github.com/mpv-player/mpv
demux_demuxers: Fix crash with -audiofile and audio disabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32691 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ad14401720
commit
2b2929fc93
|
@ -113,7 +113,7 @@ static void demux_demuxers_seek(demuxer_t *demuxer,float rel_seek_secs,float aud
|
|||
pos = demuxer->video->first->pts;
|
||||
}
|
||||
|
||||
if(priv->ad != priv->vd) {
|
||||
if(priv->ad != priv->vd && demuxer->audio->sh) {
|
||||
sh_audio_t* sh = demuxer->audio->sh;
|
||||
demux_seek(priv->ad,pos,audio_delay,1);
|
||||
// In case the demuxer don't set pts
|
||||
|
|
Loading…
Reference in New Issue