configBitstreamParser: cleanup

This commit is contained in:
Gwenhael Goavec-Merou
2021-12-03 07:21:22 +01:00
parent 5e1f09c4d6
commit dfed1d1799
-3
View File
@@ -39,12 +39,9 @@ ConfigBitstreamParser::ConfigBitstreamParser(const string &filename, int mode,
FILE *_fd = fopen(filename.c_str(), "rb");
if (!_fd) {
printf("1\n");
/* if file not found it's maybe a gz -> try without gz */
if (offset != string::npos) {
printf("2\n");
_filename = filename.substr(0, offset);
printf("%s\n", _filename.c_str());
_fd = fopen(_filename.c_str(), "rb");
}