Wrap vector<float> in Swig mappings, and enable thread-safe access to swig wrappers - so our long running waveformer does not block the Python GIL

This commit is contained in:
Jonathan Thomas
2022-10-31 14:20:18 -05:00
parent 2326532820
commit 9cd7dd68a8
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
//
// SPDX-License-Identifier: LGPL-3.0-or-later
%module openshot
%module("threads"=1) openshot
/* Suppress warnings about ignored operator= */
%warnfilter(362);
@@ -45,6 +45,7 @@
%template() std::map<std::string, int>;
%template() std::pair<int, int>;
%template() std::vector<int>;
%template() std::vector<float>;
%template() std::pair<double, double>;
%template() std::pair<float, float>;
%template() std::pair<std::string, std::string>;