浏览代码

decklink: Initialize member variables

Dmitry-Me 6 年之前
父节点
当前提交
a00b4ce1d4
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      plugins/decklink/decklink-device.hpp

+ 4 - 4
plugins/decklink/decklink-device.hpp

@@ -18,10 +18,10 @@ class DeckLinkDevice {
 	std::string                               name;
 	std::string                               displayName;
 	std::string                               hash;
-	int32_t                                   maxChannel;
-	decklink_bool_t                           supportsExternalKeyer;
-	decklink_bool_t                           supportsInternalKeyer;
-	int                                       keyerMode;
+	int32_t                                   maxChannel = 0;
+	decklink_bool_t                           supportsExternalKeyer = false;
+	decklink_bool_t                           supportsInternalKeyer = false;
+	int                                       keyerMode = 0;
 	volatile long                             refCount = 1;
 
 public: