From 5d99b0e8e29113b0ca73c5471f0335ba5ba467ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 5 Jun 2024 10:56:22 -0400 Subject: [PATCH] [shmdata] Fix #1511 by adding type to caps --- .../score-plugin-gfx/Gfx/Shmdata/ShmdataOutputDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/score-plugin-gfx/Gfx/Shmdata/ShmdataOutputDevice.cpp b/src/plugins/score-plugin-gfx/Gfx/Shmdata/ShmdataOutputDevice.cpp index 7d01d39315..bfb76d8ab1 100644 --- a/src/plugins/score-plugin-gfx/Gfx/Shmdata/ShmdataOutputDevice.cpp +++ b/src/plugins/score-plugin-gfx/Gfx/Shmdata/ShmdataOutputDevice.cpp @@ -179,12 +179,14 @@ void ShmdataOutputNode::createOutput( score::gfx::GraphicsApi graphicsApi, std::function onReady, std::function onUpdate, std::function onResize) { + // clang-format off m_writer = std::make_unique( m_settings.path.toStdString(), m_settings.width * m_settings.height * 4, fmt::format( - "video/x-raw,format=RGBA,width={},height={},framerate={}/1", m_settings.width, + "video/x-raw,format=(string)RGBA,width=(int){},height=(int){},framerate={}/1", m_settings.width, m_settings.height, int(m_settings.rate)), &m_logger); + // clang-format on m_renderState = std::make_shared(); m_update = onUpdate;