浏览代码

win-mf: Deprecate MF QSV encoder

jp9000 9 年之前
父节点
当前提交
81313dfd35
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      plugins/win-mf/mf-h264.cpp

+ 6 - 0
plugins/win-mf/mf-h264.cpp

@@ -542,11 +542,17 @@ void RegisterMFH264Encoders()
 		if (!CanSpawnEncoder(e))
 			continue;
 
+		if (e->Type() == EncoderType::H264_QSV)
+			info.caps = OBS_ENCODER_CAP_DEPRECATED;
+		else
+			info.caps = 0;
+
 		info.id = e->Id();
 		info.type_data = new TypeData(e);
 		info.free_type_data = [] (void *type_data) {
 			delete reinterpret_cast<TypeData*>(type_data);
 		};
+
 		obs_register_encoder(&info);
 	}
 }