Skip to content

Commit c729ba6

Browse files
committed
onebinary: fix global name collisions in InputISMV
1 parent 1652aee commit c729ba6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ onebinary_stuff += 'MistInFLV'
219219
onebinary_stuff += 'MistInFolder'
220220
onebinary_stuff += 'MistInH264'
221221
onebinary_stuff += 'MistInHLS'
222-
# onebinary_stuff += 'MistInISMV'
222+
onebinary_stuff += 'MistInISMV'
223223
onebinary_stuff += 'MistInMP3'
224224
onebinary_stuff += 'MistInMP4'
225225
onebinary_stuff += 'MistInOGG'

src/input/input_ismv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace Mist{
102102

103103
if (!buffered.size()){return;}
104104

105-
seekPos thisPos = *buffered.begin();
105+
seekPosISMV thisPos = *buffered.begin();
106106
buffered.erase(buffered.begin());
107107

108108
fseek(inFile, thisPos.position, SEEK_SET);
@@ -252,7 +252,7 @@ namespace Mist{
252252

253253
currentPosition = ftell(inFile) + 8;
254254
for (unsigned int i = 0; i < trunBox.getSampleInformationCount(); i++){
255-
seekPos myPos;
255+
seekPosISMV myPos;
256256
myPos.position = currentPosition;
257257
myPos.trackId = trackId;
258258
myPos.time = currentTime;

src/input/input_ismv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <set>
88

99
namespace Mist{
10-
struct seekPos{
11-
bool operator<(const seekPos &rhs) const{
10+
struct seekPosISMV{
11+
bool operator<(const seekPosISMV &rhs) const{
1212
if (time < rhs.time){return true;}
1313
return (time == rhs.time && trackId < rhs.trackId);
1414
}
@@ -40,7 +40,7 @@ namespace Mist{
4040
bool readMoofSkipMdat(size_t &tId, std::vector<MP4::trunSampleInformation> &trunSamples);
4141

4242
void bufferFragmentData(size_t trackId, uint32_t keyNum);
43-
std::set<seekPos> buffered;
43+
std::set<seekPosISMV> buffered;
4444
std::map<size_t, uint32_t> lastKeyNum;
4545

4646
Util::ResizeablePointer dataPointer;

0 commit comments

Comments
 (0)