mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 00:40:13 +00:00
Option to disable message repeats suppressing
This commit is contained in:
13
src/host.cpp
13
src/host.cpp
@@ -44,6 +44,8 @@
|
||||
#include "config_win32.h"
|
||||
#endif
|
||||
|
||||
#include <getopt.h>
|
||||
|
||||
#include "host.h"
|
||||
|
||||
#include "audio/audio_capture.h"
|
||||
@@ -179,13 +181,20 @@ static int x11_error_handler(Display *d, XErrorEvent *e) {
|
||||
}
|
||||
#endif
|
||||
|
||||
struct init_data *common_preinit(int argc, char *argv[])
|
||||
struct init_data *common_preinit(int argc, char *argv[], const char *log_opt)
|
||||
{
|
||||
struct init_data *init;
|
||||
bool logger_repeat_msgs = false;
|
||||
|
||||
uv_argc = argc;
|
||||
uv_argv = argv;
|
||||
|
||||
if (!set_log_level(log_opt, &logger_repeat_msgs)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Logger::preinit(!logger_repeat_msgs);
|
||||
|
||||
#ifdef HAVE_X
|
||||
void *handle = dlopen(X11_LIB_NAME, RTLD_NOW);
|
||||
|
||||
@@ -240,8 +249,6 @@ struct init_data *common_preinit(int argc, char *argv[])
|
||||
perf_init();
|
||||
perf_record(UVP_INIT, 0);
|
||||
|
||||
Logger::preinit();
|
||||
|
||||
return init;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user