Skip to content

Commit b99feef

Browse files
committed
out_ndi: Actually render to alternative buffer.
All the effort, none of the gain. I'm an idiot.
1 parent f21438b commit b99feef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/out_ndi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ int clear(int _modno) {
8989
int render(void) {
9090
// Get current buffer
9191
int current_fob = atomic_load(&front_or_back);
92-
RGB *current_buffer = current_fob ? front_buffer : back_buffer;
92+
RGB *alt_buffer = current_fob ? back_buffer : front_buffer;
9393

94-
// Upscale primary buffer to current buffer
95-
upscale_buffer(primary_buffer, MATRIX_X, MATRIX_Y, NDI_SCALE_FACTOR, current_buffer);
94+
// Upscale primary buffer to alternate buffer
95+
upscale_buffer(primary_buffer, MATRIX_X, MATRIX_Y, NDI_SCALE_FACTOR, alt_buffer);
9696

9797
// Flip buffers
9898
atomic_store(&front_or_back, !current_fob);
@@ -153,7 +153,7 @@ static void* send_task(void *arg) {
153153
// Get current buffer
154154
int current_fob = atomic_load(&front_or_back);
155155

156-
// Send a video frame with the actual data.
156+
// Send a video frame with the current buffer's data.
157157
video_frame.p_data = (uint8_t*) (current_fob ? front_buffer : back_buffer);
158158
NDIlib_send_send_video_async_v2(ndi_send, &video_frame);
159159

0 commit comments

Comments
 (0)