mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
More cleanup hwdevice ctx
This commit is contained in:
@@ -62,6 +62,7 @@ static bool gsr_video_encoder_cuda_setup_context(gsr_video_encoder_cuda *self, A
|
||||
|
||||
self->cuda_stream = cuda_device_context->stream;
|
||||
video_codec_context->hw_frames_ctx = av_buffer_ref(frame_context);
|
||||
av_buffer_unref(&frame_context);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ static bool gsr_video_encoder_vaapi_setup_context(gsr_video_encoder_vaapi *self,
|
||||
}
|
||||
|
||||
video_codec_context->hw_frames_ctx = av_buffer_ref(frame_context);
|
||||
av_buffer_unref(&frame_context);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user