diff options
author | jstebbins <[email protected]> | 2015-06-12 20:52:01 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-06-12 20:52:01 +0000 |
commit | 1be7a8e58feb0d26cac7067dcd289aec2aebb2e7 (patch) | |
tree | 07713faf52c6dd0dbf129ec35aecd217bf00b39e /gtk/src/hb-backend.c | |
parent | f2b0998a8f4ef77d3ef791b64ad032c1bb8348ea (diff) |
libhb: Allow log level changes and update checks *after* hb_init()
- In the CLI, this allows calling hb_init() before parsing args, which
permits us to see any libhb log messages that are generated during
option parsing. These messages were hidden before.
- In the GUIs, this allows dynamic changes to log level. Previously an
application restart was required. I have only updated the LinGui to
take advantage of this.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7295 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index ecb33f791..839b4e052 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -149,6 +149,7 @@ static options_map_t d_logging_opts[] = {"0", "0", 0, "0"}, {"1", "1", 1, "1"}, {"2", "2", 2, "2"}, + {"3", "3", 3, "3"}, }; combo_opts_t logging_opts = { @@ -2866,6 +2867,14 @@ ghb_backend_init(gint debug) } void +ghb_log_level_set(int level) +{ + hb_log_level_set(h_scan, level); + hb_log_level_set(h_queue, level); + hb_log_level_set(h_live, level); +} + +void ghb_backend_close() { hb_close(&h_live); |