summaryrefslogtreecommitdiff
path: root/src/asdcp-test.cpp
diff options
context:
space:
mode:
authormilla <marc.illa@dolby.com>2021-06-15 13:12:01 +0200
committermilla <marc.illa@dolby.com>2021-06-15 13:13:12 +0200
commit8df78decb4e01b579bbbd1f479d187adf34fc030 (patch)
tree67151d234a56581e949b8d00e11c23fef166a4ff /src/asdcp-test.cpp
parentb423f01ad10fd3cf7f860cace315c7d06e74db06 (diff)
Fix indentation
Use smart pointer for Reader Don't define fileReader constructor and destructor twice (win and posix) but just once as their implementation is the same
Diffstat (limited to 'src/asdcp-test.cpp')
-rwxr-xr-xsrc/asdcp-test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/asdcp-test.cpp b/src/asdcp-test.cpp
index 838d259..3b25d88 100755
--- a/src/asdcp-test.cpp
+++ b/src/asdcp-test.cpp
@@ -1870,7 +1870,7 @@ show_file_info(CommandOptions& Options, const Kumu::IFileReaderFactory& fileRead
else
{
fprintf(stderr, "File is not AS-DCP: %s\n", Options.filenames[0]);
- Kumu::IFileReader* Reader = fileReaderFactory.CreateFileReader();
+ ASDCP::mem_ptr<Kumu::IFileReader> Reader(fileReaderFactory.CreateFileReader());
const Dictionary* Dict = &DefaultCompositeDict();
MXF::OP1aHeader TestHeader(Dict);
@@ -1897,7 +1897,6 @@ show_file_info(CommandOptions& Options, const Kumu::IFileReaderFactory& fileRead
{
fputs("File is not MXF.\n", stdout);
}
- delete Reader;
}
return result;