Commit 8e451b51 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

mkv: Avoid duplicating the entire vector.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a108f3ff
...@@ -263,7 +263,7 @@ chapter_item_c *virtual_segment_c::FindChapter( int64_t i_find_uid ) ...@@ -263,7 +263,7 @@ chapter_item_c *virtual_segment_c::FindChapter( int64_t i_find_uid )
return NULL; return NULL;
} }
void virtual_segment_c::AddSegments(std::vector<matroska_segment_c *> segments) void virtual_segment_c::AddSegments( const std::vector<matroska_segment_c *> &segments)
{ {
// fill our current virtual segment with all hard linked segments // fill our current virtual segment with all hard linked segments
size_t i_preloaded; size_t i_preloaded;
......
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
AppendUID( p_segment->p_next_segment_uid ); AppendUID( p_segment->p_next_segment_uid );
} }
void AddSegments( std::vector<matroska_segment_c*> segments ); void AddSegments( const std::vector<matroska_segment_c*> &segments );
void Seek( demux_t & demuxer, mtime_t i_date, mtime_t i_time_offset, chapter_item_c *p_chapter, int64_t i_global_position ); void Seek( demux_t & demuxer, mtime_t i_date, mtime_t i_time_offset, chapter_item_c *p_chapter, int64_t i_global_position );
......
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