[vlc-commits] [Git][videolan/vlc][master] qt: correct respected verbosity levels for the filter rules
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Jun 23 12:56:52 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
8a7e12c1 by Fatih Uzunoglu at 2024-06-23T12:42:57+00:00
qt: correct respected verbosity levels for the filter rules
Although in Qt messages dialog level "2" corresponds to
debug level, in a general aspect "3" corresponds to debug.
Since we are using a non-Qt parameter "verbose" here to
probe the level, we should treat the levels as according
to the `vlc_log_type` enumeration.
- - - - -
1 changed file:
- modules/gui/qt/qt.cpp
Changes:
=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -96,6 +96,7 @@ extern "C" char **environ;
#include <vlc_window.h>
#include <vlc_player.h>
#include <vlc_threads.h>
+#include <vlc_messages.h>
#include <QQuickWindow>
@@ -744,11 +745,21 @@ static void *Thread( void *obj )
QString filterRules;
const int verbosity = var_InheritInteger(p_intf, "verbose");
- if (verbosity < 2)
+ if (verbosity < VLC_MSG_DBG)
{
filterRules += QStringLiteral("*.debug=false\n");
- if (verbosity < 1)
+ if (verbosity < VLC_MSG_WARN)
+ {
filterRules += QStringLiteral("*.warning=false\n");
+ if (verbosity < VLC_MSG_ERR)
+ {
+ filterRules += QStringLiteral("*.critical=false\n");
+ if (verbosity < VLC_MSG_INFO)
+ {
+ filterRules += QStringLiteral("*.info=false\n");
+ }
+ }
+ }
}
if (var_InheritBool(p_intf, "qt-verbose"))
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8a7e12c178d8d0ec820b841206abe4aab54e2d51
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8a7e12c178d8d0ec820b841206abe4aab54e2d51
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list