From 46ce261524617c575774e51206bfe9816062c6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 10 Dec 2021 11:03:06 +0100 Subject: [PATCH] widget: Make sure we have caps before logging them --- src/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget.js b/src/widget.js index c709573b..63bf967f 100644 --- a/src/widget.js +++ b/src/widget.js @@ -278,7 +278,8 @@ class ClapperWidget extends Gtk.Grid if(currStream && type !== 'subtitle') { const caps = currStream.get_caps(); - debug(`${type} caps: ${caps.to_string()}`); + if (caps) + debug(`${type} caps: ${caps.to_string()}`); } if(type === 'video') { const isShowVis = (