Skip to content

Commit 4ee9527

Browse files
committed
note on vidLock
1 parent 835c35f commit 4ee9527

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nvdec.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ pub const Decoder = struct {
318318
decoder_create_info.ulNumOutputSurfaces = num_output_surfaces;
319319
decoder_create_info.ulCreationFlags = nvdec_bindings.create_flags.prefer_CUVID;
320320
decoder_create_info.ulNumDecodeSurfaces = @intCast(num_decode_surfaces);
321-
// decoder_create_info.vidLock = lock;
321+
// TODO: This IS required when multi-threading and sharing a CUDA
322+
// context among multiple decoders.
323+
// // decoder_create_info.vidLock = lock;
322324
decoder_create_info.ulWidth = format.coded_width;
323325
decoder_create_info.ulHeight = format.coded_height;
324326
decoder_create_info.ulMaxWidth = 0;

0 commit comments

Comments
 (0)