[vlc-commits] demux:mkv: make the Seekpoints immutable
Steve Lhomme
git at videolan.org
Mon Jan 22 11:09:56 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 22 11:04:27 2018 +0100| [b17cd27d807953f741750cf994cc286fc1216602] | committer: Steve Lhomme
demux:mkv: make the Seekpoints immutable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b17cd27d807953f741750cf994cc286fc1216602
---
modules/demux/mkv/matroska_segment_seeker.hpp | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_seeker.hpp b/modules/demux/mkv/matroska_segment_seeker.hpp
index e2e1579354..6d5e088f6a 100644
--- a/modules/demux/mkv/matroska_segment_seeker.hpp
+++ b/modules/demux/mkv/matroska_segment_seeker.hpp
@@ -69,14 +69,23 @@ class SegmentSeeker
: Seekpoint( std::numeric_limits<fptr_t>::max(), -1, DISABLED )
{ }
+ Seekpoint(const Seekpoint & sp)
+ : Seekpoint( sp.fpos, sp.pts, sp.trust_level )
+ { }
+
+ Seekpoint operator=( const Seekpoint & other ) const
+ {
+ return other;
+ }
+
bool operator<( Seekpoint const& rhs ) const
{
return pts < rhs.pts;
}
- fptr_t fpos;
- mtime_t pts;
- TrustLevel trust_level;
+ const fptr_t fpos;
+ const mtime_t pts;
+ const TrustLevel trust_level;
};
struct Cluster {
More information about the vlc-commits
mailing list