Hide VLC log info

This commit is contained in:
Manuel Cortez 2022-11-25 15:29:21 -06:00
parent fabca1207d
commit b6dd539dc6
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -111,7 +111,8 @@ class URLStream(object):
self.prepared = False self.prepared = False
log.debug("URL Player initialized") log.debug("URL Player initialized")
# LibVLC controls. # LibVLC controls.
self.instance = vlc.Instance() self.instance = vlc.Instance("--quiet")
self.instance.log_unset()
self.player = self.instance.media_player_new() self.player = self.instance.media_player_new()
self.event_manager = self.player.event_manager() self.event_manager = self.player.event_manager()
self.event_manager.event_attach(vlc.EventType.MediaPlayerEndReached, self.end_callback) self.event_manager.event_attach(vlc.EventType.MediaPlayerEndReached, self.end_callback)