working the player
This commit is contained in:
@@ -5,7 +5,7 @@ import gi
|
||||
gi.require_version("Gtk", "4.0")
|
||||
gi.require_version("Adw", "1")
|
||||
|
||||
from gi.repository import Gtk, Adw, Gio
|
||||
from gi.repository import Gtk, Adw, Gio, GLib
|
||||
|
||||
from cht.config import APP_ID, APP_NAME
|
||||
from cht.window import ChtWindow
|
||||
@@ -25,7 +25,14 @@ class ChtApp(Adw.Application):
|
||||
win.present()
|
||||
|
||||
|
||||
def _suppress_egl_warnings(domain, level, message, user_data):
|
||||
if b"eglExportDMABUFImage" in message:
|
||||
return
|
||||
GLib.log_default_handler(domain, level, message, user_data)
|
||||
|
||||
|
||||
def main():
|
||||
GLib.log_set_handler("Gdk", GLib.LogLevelFlags.LEVEL_WARNING, _suppress_egl_warnings, None)
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format="%(asctime)s %(levelname)-7s %(name)s: %(message)s",
|
||||
|
||||
Reference in New Issue
Block a user