Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/PlayerSubresyncBar.h')
-rw-r--r--src/mpc-hc/PlayerSubresyncBar.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mpc-hc/PlayerSubresyncBar.h b/src/mpc-hc/PlayerSubresyncBar.h
index ebced00fe..1b6cf35da 100644
--- a/src/mpc-hc/PlayerSubresyncBar.h
+++ b/src/mpc-hc/PlayerSubresyncBar.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2014 see Authors.txt
+ * (C) 2006-2015 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -22,6 +22,8 @@
#pragma once
#include <afxcview.h>
+#include <vector>
+#include <map>
#include "PlayerBar.h"
#include "PlayerListCtrl.h"
#include "../Subtitles/RTS.h"
@@ -78,10 +80,12 @@ private:
};
MODE m_mode;
+ std::multimap<int, size_t> m_newStartsIndex;
struct SubTime {
int orgStart, newStart, orgEnd, newEnd;
+ std::multimap<int, size_t>::iterator itIndex;
};
- CAtlArray<SubTime> m_subtimes;
+ std::vector<SubTime> m_subtimes;
CSimpleTextSubtitle m_sts;
CAtlArray<CVobSubFile::SubPos> m_vobSub;
@@ -90,7 +94,7 @@ private:
int tStart, tPrevStart, tEnd, tPrevEnd;
int flags;
};
- CAtlArray<DisplayData> m_displayData;
+ std::vector<DisplayData> m_displayData;
CString m_displayBuffer;
int GetStartTime(int iItem);