[vlc-devel] commit: ASF: Use stream_Seek() if we only want to seek ( Rafaël Carré )

git version control git at videolan.org
Fri Jun 6 11:38:38 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jun  6 11:39:18 2008 +0200| [e9fdaf06b59ebdd0b9b5faa000c18732354e44e1]

ASF: Use stream_Seek() if we only want to seek

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9fdaf06b59ebdd0b9b5faa000c18732354e44e1
---

 modules/demux/asf/libasf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index bf896df..74a7ca9 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -165,7 +165,7 @@ static int  ASF_ReadObject_Header( stream_t *s, asf_object_t *p_obj )
 #endif
 
     /* Cannot fail as peek succeed */
-    stream_Read( s, NULL, 30 );
+    stream_Seek( s, stream_Tell( s ) + 30 );
 
     /* Now load sub object */
     for( ; ; )




More information about the vlc-devel mailing list