aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-12-11 19:32:23 +0000
committerGravatar Uoti Urpala <uau@glyph.nonexistent.invalid>2010-12-16 06:22:19 +0200
commit2b2929fc9317c24c78c44756a83153cb05861c64 (patch)
tree14d2e6a78ad70500889f6b7dc4671fb99951a4e6
parentad144017204a7537a9b95712541e7425d6722763 (diff)
demux_demuxers: Fix crash with -audiofile and audio disabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32691 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/demux_demuxers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_demuxers.c b/libmpdemux/demux_demuxers.c
index 3de307db0f..54fe5c1b01 100644
--- a/libmpdemux/demux_demuxers.c
+++ b/libmpdemux/demux_demuxers.c
@@ -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