Remove vlc logging
This commit is contained in:
parent
ce224a41d1
commit
e9f4ecf5ef
@ -113,32 +113,7 @@ class Music:
|
|||||||
self.player: vlc.MediaPlayer | None = None
|
self.player: vlc.MediaPlayer | None = None
|
||||||
self.max_volume: int = Config.VLC_VOLUME_DEFAULT
|
self.max_volume: int = Config.VLC_VOLUME_DEFAULT
|
||||||
self.start_dt: dt.datetime | None = None
|
self.start_dt: dt.datetime | None = None
|
||||||
|
self.signals = MusicMusterSignals()
|
||||||
# Set up logging
|
|
||||||
# self._set_vlc_log()
|
|
||||||
|
|
||||||
# VLC logging very noisy so comment out unless needed
|
|
||||||
# @VLC_LOG_CB
|
|
||||||
# def log_callback(data, level, ctx, fmt, args):
|
|
||||||
# try:
|
|
||||||
# # Create a ctypes string buffer to hold the formatted message
|
|
||||||
# buf = ctypes.create_string_buffer(1024)
|
|
||||||
|
|
||||||
# # Use vsnprintf to format the string with the va_list
|
|
||||||
# libc.vsnprintf(buf, len(buf), fmt, args)
|
|
||||||
|
|
||||||
# # Decode the formatted message
|
|
||||||
# message = buf.value.decode("utf-8", errors="replace")
|
|
||||||
# log.debug("VLC: " + message)
|
|
||||||
# except Exception as e:
|
|
||||||
# log.error(f"Error in VLC log callback: {e}")
|
|
||||||
|
|
||||||
# def _set_vlc_log(self):
|
|
||||||
# try:
|
|
||||||
# vlc.libvlc_log_set(vlc_instance, self.log_callback, None)
|
|
||||||
# log.debug("VLC logging set up successfully")
|
|
||||||
# except Exception as e:
|
|
||||||
# log.error(f"Failed to set up VLC logging: {e}")
|
|
||||||
|
|
||||||
def fade(self, fade_seconds: int) -> None:
|
def fade(self, fade_seconds: int) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user