mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Do not print warnings when identifying a file.
This commit is contained in:
parent
1b34be6948
commit
5d2e36dc92
@ -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);
|
||||
|
@ -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, ...)
|
||||
|
@ -1248,6 +1248,7 @@ static void identify(const char *filename) {
|
||||
|
||||
verbose = 0;
|
||||
identifying = true;
|
||||
suppress_warnings = true;
|
||||
create_readers();
|
||||
|
||||
file->reader->identify();
|
||||
|
Loading…
Reference in New Issue
Block a user