From 3037dba80d888a0322d8ebf4e9728800fc314275 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 12 Feb 2017 01:11:41 +0200 Subject: [HACK] py: Expose Videomode::to_blob method Returning the blob through an std::unique_ptr<> causes issues with pybind11. Return the blob pointer directly as a workaround while the root cause is investigated and fixed. Signed-off-by: Laurent Pinchart --- py/pykms/pykmsbase.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'py') diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 090c212..1492e53 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -148,6 +148,7 @@ void init_pykmsbase(py::module &m) py::class_(m, "Videomode") .def(py::init<>()) + .def("blob", &Videomode::to_blob) .def_readwrite("name", &Videomode::name) -- cgit v1.2.3