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:
reimar 2010-12-11 19:32:23 +00:00 committed by Uoti Urpala
parent ad14401720
commit 2b2929fc93
1 changed files with 1 additions and 1 deletions

View File

@ -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