Implement explicit buffer-reuse in stream API

This commit is contained in:
Wim Taymans 2017-10-22 15:12:04 +02:00
parent 0f4142f879
commit a3b614fff6
3 changed files with 6 additions and 10 deletions

View file

@ -313,7 +313,8 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
printf("remote state: \"%s\"\n", pw_remote_state_as_string(state));
data->stream = pw_stream_new(remote, "video-play", NULL);
data->stream = pw_stream_new(remote, "video-play",
pw_properties_new("pipewire.client.reuse", "1", NULL));
SDL_GetRendererInfo(data->renderer, &info);