Do not print warnings when identifying a file.

This commit is contained in:
Moritz Bunkus 2004-01-23 19:13:02 +00:00
parent 1b34be6948
commit 5d2e36dc92
3 changed files with 6 additions and 0 deletions

View File

@ -50,8 +50,10 @@ using namespace std;
#include "common.h"
#include "hacks.h"
#include "mkvmerge.h"
int verbose = 1;
bool suppress_warnings = false;
bitvalue_c::bitvalue_c(int nbitsize) {
assert(nbitsize > 0);
@ -1193,6 +1195,8 @@ static bool warning_issued = false;
void mxwarn(const char *fmt, ...) {
va_list ap;
if (suppress_warnings)
return;
va_start(ap, fmt);
mxmsg(MXMSG_WARNING, fmt, ap);
va_end(ap);

View File

@ -84,6 +84,7 @@ using namespace std;
(int32_t)(t) % 1000
#define ARG_TIMECODE_NS(t) ARG_TIMECODE(t / 1000000)
extern bool MTX_DLL_API suppress_warnings;
void MTX_DLL_API fix_format(const char *fmt, string &new_fmt);
#if defined(__GNUC__)
void MTX_DLL_API die(const char *fmt, ...)

View File

@ -1248,6 +1248,7 @@ static void identify(const char *filename) {
verbose = 0;
identifying = true;
suppress_warnings = true;
create_readers();
file->reader->identify();