summaryrefslogtreecommitdiff
path: root/src/klvwalk.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2016-05-09 18:18:42 +0000
committerjhurst <>2016-05-09 18:18:42 +0000
commit2b101472bf1f76db63ae1c97cf5393fe7195bcb1 (patch)
treeedf3c46b53393fc796d02d06130477e485639cc2 /src/klvwalk.cpp
parentcc05011a20424c6b855995b5965782582ca21c42 (diff)
Defined bool ASDCP::UL::operator<(const UL& rhs) const, which is needed to carry out the version-insensitive lookup policy when searching for ULs in a std::map<> of UL entries.
Diffstat (limited to 'src/klvwalk.cpp')
-rwxr-xr-xsrc/klvwalk.cpp40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/klvwalk.cpp b/src/klvwalk.cpp
index 779ee72..801389e 100755
--- a/src/klvwalk.cpp
+++ b/src/klvwalk.cpp
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2005-2015, John Hurst
+Copyright (c) 2005-2016, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -201,31 +201,33 @@ main(int argc, const char** argv)
ASDCP::MXF::OP1aHeader Header(Dict);
ASDCP::MXF::RIP RIP(Dict);
- result = Reader.OpenRead((*fi).c_str());
+ result = Reader.OpenRead(*fi);
if ( ASDCP_SUCCESS(result) )
- result = MXF::SeekToRIP(Reader);
-
- if ( ASDCP_SUCCESS(result) )
{
- result = RIP.InitFromFile(Reader);
- ui32_t test_s = RIP.PairArray.size();
-
- if ( ASDCP_FAILURE(result) )
+ result = MXF::SeekToRIP(Reader);
+
+ if ( ASDCP_SUCCESS(result) )
{
- DefaultLogSink().Error("File contains no RIP\n");
- result = RESULT_OK;
+ result = RIP.InitFromFile(Reader);
+ ui32_t test_s = RIP.PairArray.size();
+
+ if ( ASDCP_FAILURE(result) )
+ {
+ DefaultLogSink().Error("File contains no RIP\n");
+ result = RESULT_OK;
+ }
+ else if ( RIP.PairArray.empty() )
+ {
+ DefaultLogSink().Error("RIP contains no Pairs.\n");
+ }
+
+ Reader.Seek(0);
}
- else if ( RIP.PairArray.empty() )
+ else
{
- DefaultLogSink().Error("RIP contains no Pairs.\n");
+ DefaultLogSink().Error("read_mxf SeekToRIP failed: %s\n", result.Label());
}
-
- Reader.Seek(0);
- }
- else
- {
- DefaultLogSink().Error("read_mxf SeekToRIP failed: %s\n", result.Label());
}
if ( ASDCP_SUCCESS(result) )