diff options
| author | mschroffel <mschroffel@cinecert.com> | 2016-03-17 23:58:13 +0000 |
|---|---|---|
| committer | mschroffel <> | 2016-03-17 23:58:13 +0000 |
| commit | ed84256d7687b8255991308361e26013b7071dd9 (patch) | |
| tree | 58090552a149397f61944daf6cabf7208025f915 /src/AS_02_PCM.cpp | |
| parent | e10177793b42db5b9a8671dcff9e7c9cbc6a676a (diff) | |
included CMakelists.txt into dist
Diffstat (limited to 'src/AS_02_PCM.cpp')
| -rw-r--r-- | src/AS_02_PCM.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/AS_02_PCM.cpp b/src/AS_02_PCM.cpp index 183f424..e58690a 100644 --- a/src/AS_02_PCM.cpp +++ b/src/AS_02_PCM.cpp @@ -255,7 +255,7 @@ AS_02::PCM::MXFReader::RIP() // Open the file for reading. The file must exist. Returns error if the // operation cannot be completed. ASDCP::Result_t -AS_02::PCM::MXFReader::OpenRead(const std::string& filename, const ASDCP::Rational& edit_rate) +AS_02::PCM::MXFReader::OpenRead(const std::string& filename, const ASDCP::Rational& edit_rate) const { return m_Reader->OpenRead(filename, edit_rate); } @@ -307,16 +307,19 @@ void AS_02::PCM::MXFReader::DumpHeaderMetadata(FILE* stream) const { if ( m_Reader && m_Reader->m_File.IsOpen() ) - m_Reader->m_HeaderPart.Dump(stream); + { + m_Reader->m_HeaderPart.Dump(stream); + } } - // void AS_02::PCM::MXFReader::DumpIndex(FILE* stream) const { - if ( m_Reader->m_File.IsOpen() ) - m_Reader->m_IndexAccess.Dump(stream); + if ( m_Reader && m_Reader->m_File.IsOpen() ) + { + m_Reader->m_IndexAccess.Dump(stream); + } } |
