From 8df78decb4e01b579bbbd1f479d187adf34fc030 Mon Sep 17 00:00:00 2001 From: milla Date: Tue, 15 Jun 2021 13:12:01 +0200 Subject: 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 --- src/asdcp-test.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/asdcp-test.cpp') 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 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; -- cgit v1.2.3