[vlc-commits] commit: MKV: stream_io_callback simplifications (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Fri Apr 30 12:52:53 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 30 12:06:55 2010 +0200| [e21a40d8b1b39c3fd62c1d99d927e7d2fb53e7d6] | committer: Jean-Baptiste Kempf 

MKV: stream_io_callback simplifications

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

 modules/demux/mkv/stream_io_callback.cpp |   11 +----------
 modules/demux/mkv/stream_io_callback.hpp |    4 ++--
 2 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/modules/demux/mkv/stream_io_callback.cpp b/modules/demux/mkv/stream_io_callback.cpp
index c5570e7..7e62139 100644
--- a/modules/demux/mkv/stream_io_callback.cpp
+++ b/modules/demux/mkv/stream_io_callback.cpp
@@ -75,20 +75,11 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode )
     }
     return;
 }
-size_t vlc_stream_io_callback::write( const void *p_buffer, size_t i_size )
-{
-    return 0;
-}
+
 uint64 vlc_stream_io_callback::getFilePointer( void )
 {
     if ( s == NULL )
         return 0;
     return stream_Tell( s );
 }
-void vlc_stream_io_callback::close( void )
-{
-    return;
-}
-
-
 
diff --git a/modules/demux/mkv/stream_io_callback.hpp b/modules/demux/mkv/stream_io_callback.hpp
index c3e0641..5bad71b 100644
--- a/modules/demux/mkv/stream_io_callback.hpp
+++ b/modules/demux/mkv/stream_io_callback.hpp
@@ -45,9 +45,9 @@ class vlc_stream_io_callback: public IOCallback
 
     virtual uint32   read            ( void *p_buffer, size_t i_size);
     virtual void     setFilePointer  ( int64_t i_offset, seek_mode mode = seek_beginning );
-    virtual size_t   write           ( const void *p_buffer, size_t i_size);
+    virtual size_t   write           ( const void *p_buffer, size_t i_size) { return 0; }
     virtual uint64   getFilePointer  ( void );
-    virtual void     close           ( void );
+    virtual void     close           ( void ) { return; }
 };
 
 



More information about the vlc-commits mailing list