fix(camera): do not log ffmpeg app field decode errors, close #1480

This commit is contained in:
Alfredo Monclus committed 2024-10-13 13:41:48 -03:00
1 parent bdfdac9fb6
commit 9fb17ee17f
1 file changed
+6 -1
+6 -1
View File
@@ -97,5 +97,10 @@ class Panel(ScreenPanel):
def log(self, loglevel, component, message):
logging.debug(f'[{loglevel}] {component}: {message}')
if loglevel == 'error' and 'No Xvideo support found' not in message and 'youtube-dl' not in message:
if (
loglevel == 'error'
and 'unable to decode' not in message # skip proprietary app fields errors
and 'No Xvideo support found' not in message # will fall back automatically
and 'youtube-dl' not in message # needed for some streams, not relevant for our case
):
self._screen.show_popup_message(f'{message}')