mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +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') {
|
if(currStream && type !== 'subtitle') {
|
||||||
const caps = currStream.get_caps();
|
const caps = currStream.get_caps();
|
||||||
debug(`${type} caps: ${caps.to_string()}`);
|
if (caps)
|
||||||
|
debug(`${type} caps: ${caps.to_string()}`);
|
||||||
}
|
}
|
||||||
if(type === 'video') {
|
if(type === 'video') {
|
||||||
const isShowVis = (
|
const isShowVis = (
|
||||||
|
Reference in New Issue
Block a user