[MPlayer-dev-eng] [PATCH] fix crash of mplayer while seeking in streamed ASF files

alexandre alex14fr at yahoo.fr
Wed Nov 8 03:29:36 CET 2006


Hello,

The following one-line-patch fixes a segfault of mplayer when trying to 
seek in a streamed ASF file. I think there is no regression since 
seeking in a local ASF file is still possible. Feel free to apply it if 
you think it's OK.

Alexandre


Index: libmpdemux/demux_asf.c
===================================================================
--- libmpdemux/demux_asf.c      (revision 20771)
+++ libmpdemux/demux_asf.c      (working copy)
@@ -588,6 +588,9 @@
         }
     }
 
+    if(!demuxer->stream->seek)
+        demuxer->seekable=0;
+
     return demuxer;
 }
 


	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com



More information about the MPlayer-dev-eng mailing list