Commit e21a40d8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MKV: stream_io_callback simplifications

parent 18dbd3ac
......@@ -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;
}
......@@ -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; }
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment