[MPlayer-cvslog] r32691 - trunk/libmpdemux/demux_demuxers.c

reimar subversion at mplayerhq.hu
Sat Dec 11 20:32:23 CET 2010


Author: reimar
Date: Sat Dec 11 20:32:23 2010
New Revision: 32691

Log:
Fix crahs with -audiofile and audio disabled.

Modified:
   trunk/libmpdemux/demux_demuxers.c

Modified: trunk/libmpdemux/demux_demuxers.c
==============================================================================
--- trunk/libmpdemux/demux_demuxers.c	Sat Dec 11 19:37:00 2010	(r32690)
+++ trunk/libmpdemux/demux_demuxers.c	Sat Dec 11 20:32:23 2010	(r32691)
@@ -112,7 +112,7 @@ static void demux_demuxers_seek(demuxer_
       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


More information about the MPlayer-cvslog mailing list