Skip to content

Commit

Permalink
[shmdata] Fix #1511 by adding type to caps
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jun 5, 2024
1 parent 8f673b9 commit 5d99b0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,14 @@ void ShmdataOutputNode::createOutput(
score::gfx::GraphicsApi graphicsApi, std::function<void()> onReady,
std::function<void()> onUpdate, std::function<void()> onResize)
{
// clang-format off
m_writer = std::make_unique<shmdata::Writer>(
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<score::gfx::RenderState>();
m_update = onUpdate;

Expand Down

0 comments on commit 5d99b0e

Please sign in to comment.