changeset 20792:dcaf8b9f47e9

Fix crash when attempting to seek in a streamed unseekable stream, like mms://a632.v3306a.c3306.e.vm.akamaistream.net/7/632/3306/v1/multith.download.akamai.com/3306/2005/COMEDIE/1144-0186-001.wmv patch by alexandre % alex14fr A yahoo P fr %
author gpoirier
date Wed, 08 Nov 2006 23:54:21 +0000
parents b5045bb4f1aa
children 8b9a98c1f351
files libmpdemux/demux_asf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c	Wed Nov 08 23:45:15 2006 +0000
+++ b/libmpdemux/demux_asf.c	Wed Nov 08 23:54:21 2006 +0000
@@ -587,6 +587,8 @@
             sh_audio->format=sh_audio->wf->wFormatTag;
         }
     }
+    if(!demuxer->stream->seek)
+        demuxer->seekable=0;
 
     return demuxer;
 }