mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
widget: Make sure we have caps before logging them
This commit is contained in:
@@ -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 = (
|
||||
|
Reference in New Issue
Block a user