7 #ifndef MEDIA_FILE_FILE_CLOSER_H_
8 #define MEDIA_FILE_FILE_CLOSER_H_
10 #include "packager/base/logging.h"
11 #include "packager/media/file/file.h"
13 namespace edash_packager {
19 inline void operator()(
File* file)
const {
20 if (file != NULL && !file->
Close()) {
21 LOG(WARNING) <<
"Failed to close the file properly: "
30 #endif // MEDIA_FILE_FILE_CLOSER_H_