[vlc-devel] commit: avformat: add support to IOSeek() for AVSEEK_SIZE ( retrieving size without seeking) (Derk-Jan Hartman )

git version control git at videolan.org
Wed Jul 30 03:31:08 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Jul 30 00:06:05 2008 +0200| [b7594a14b3fa942e00441c03b17f0844cbb8f960]

avformat: add support to IOSeek() for AVSEEK_SIZE (retrieving size without seeking)

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

 modules/demux/avformat/demux.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index e3254b2..72ccd75 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -496,6 +496,10 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
 
     switch( whence )
     {
+#ifdef AVSEEK_SIZE
+        case AVSEEK_SIZE:
+            return i_size;
+#endif
         case SEEK_SET:
             break;
         case SEEK_CUR:




More information about the vlc-devel mailing list