widget: Make sure we have caps before logging them

This commit is contained in:
Rafał Dzięgiel
2021-12-10 11:03:06 +01:00
parent 50aac8cdd8
commit 46ce261524

View File

@@ -278,6 +278,7 @@ class ClapperWidget extends Gtk.Grid
if(currStream && type !== 'subtitle') {
const caps = currStream.get_caps();
if (caps)
debug(`${type} caps: ${caps.to_string()}`);
}
if(type === 'video') {