aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-08-08 04:02:34 +0200
committerdec05eba <dec05eba@protonmail.com>2026-08-08 04:02:34 +0200
commit65c75169276be632ed8543a1f0c03d966f683b19 (patch)
tree873c24ada21731e64c4f68a99a8d14f02df1e761 /src
parentf4d1d3d2b00513c9323ae76a6d52117ee2dd0392 (diff)
Fix nvenc crash on shutdown
Diffstat (limited to 'src')
-rw-r--r--src/recorder/recorder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/recorder/recorder.c b/src/recorder/recorder.c
index 901077c..ca4dcea 100644
--- a/src/recorder/recorder.c
+++ b/src/recorder/recorder.c
@@ -911,6 +911,9 @@ void gsr_recorder_destroy(gsr_recorder *self, bool exiting) {
if(self->color_conversion_initialized)
gsr_color_conversion_deinit(&self->color_conversion);
+ if(self->video_frame)
+ av_frame_free(&self->video_frame);
+
if(self->video_encoder)
gsr_video_encoder_destroy(self->video_encoder, self->video_codec_context);
@@ -919,9 +922,6 @@ void gsr_recorder_destroy(gsr_recorder *self, bool exiting) {
gsr_video_sources_deinit(&self->video_sources_data);
- if(self->video_frame)
- av_frame_free(&self->video_frame);
-
if(self->video_codec_context)
avcodec_free_context(&self->video_codec_context);