Commit 8c836b1c authored by Loïc Minier's avatar Loïc Minier

* src/core/parsers.cpp: some fclose before we throw

parent 537e940d
......@@ -2,7 +2,7 @@
* parsers.cpp: Command line and configuration files parsers
*-------------------------------------------------------------------------------
* (c)1999-2001 VideoLAN
* $Id: parsers.cpp,v 1.25 2003/08/24 20:19:26 lool Exp $
* $Id: parsers.cpp,v 1.26 2003/08/24 20:44:24 lool Exp $
*
* Authors: Benoit Steiner <benny@via.ecp.fr>
* Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
......@@ -545,6 +545,7 @@ C_String C_CfgFileParser::ParseFILETarget(C_String sT)
sFmt = "mpeg1-ps";
break;
} else {
fFile.Close();
throw E_Parser( GEN_ERR, "Automatic format detection "
"of MPEG failed (pack header found)" );
}
......@@ -552,10 +553,12 @@ C_String C_CfgFileParser::ParseFILETarget(C_String sT)
#ifdef DEBUG
fprintf( stderr, "DEBUG: detected PES?\n" );
#endif
fFile.Close();
throw E_Parser( GEN_ERR, "Automatic format detection of "
"MPEG failed (PES found)" );
}
} else {
fFile.Close();
throw E_Parser( GEN_ERR, "Automatic format detection failed" );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment