Skip to content

Commit 570b692

Browse files
committed
vdisp/pipewire: Simplify node name generation
1 parent a0e7a6b commit 570b692

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/video_display/pipewire.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,7 @@ static bool display_pw_reconfigure(void *state, video_desc desc)
417417

418418
s->desc = desc;
419419

420-
std::string node_name = "ultragrid_out_";
421-
{
422-
char buf[32];
423-
snprintf(buf, sizeof(buf), "%ld", (long) getpid());
424-
node_name += buf;
425-
}
420+
std::string node_name = "ultragrid_out_" + std::to_string(getpid());
426421

427422
auto props = pw_properties_new(
428423
PW_KEY_MEDIA_TYPE, "Video",

0 commit comments

Comments
 (0)