Skip to content

Commit 793dae6

Browse files
committed
protect LUT data
1 parent e0c6288 commit 793dae6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/modules/plus/filter_lift_gamma_gain.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,11 @@ static int filter_get_image(mlt_frame frame,
338338
desc.rlut16 = self->rlut16;
339339
desc.glut16 = self->glut16;
340340
desc.blut16 = self->blut16;
341-
mlt_service_unlock(MLT_FILTER_SERVICE(filter));
342341

343342
// Apply the LUT with copied pointers
344343
mlt_slices_run_normal(0, sliced_proc, &desc);
345-
} else {
346-
mlt_service_unlock(MLT_FILTER_SERVICE(filter));
347344
}
345+
mlt_service_unlock(MLT_FILTER_SERVICE(filter));
348346
}
349347

350348
return error;

0 commit comments

Comments
 (0)