Don't use camera->LineSize when allocating shared images. It doesn't work because other processes don't know about it.

This commit is contained in:
Isaac Connor 2020-08-06 10:11:00 -04:00
parent 3ba8ad579e
commit 302189a65e
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ bool Monitor::connect() {
image_buffer = new Snapshot[image_buffer_count];
for ( int i = 0; i < image_buffer_count; i++ ) {
image_buffer[i].timestamp = &(shared_timestamps[i]);
image_buffer[i].image = new Image( width, camera->LineSize(), height, camera->Colours(), camera->SubpixelOrder(), &(shared_images[i*camera->ImageSize()]) );
image_buffer[i].image = new Image( width, height, camera->Colours(), camera->SubpixelOrder(), &(shared_images[i*camera->ImageSize()]) );
image_buffer[i].image->HoldBuffer(true); /* Don't release the internal buffer or replace it with another */
}
if ( (deinterlacing & 0xff) == 4) {