Skip to content

Commit

Permalink
Fix releasing audio encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Dec 6, 2024
1 parent d5fc222 commit 8aeff93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ else()
cmake_minimum_required(VERSION 3.18)
endif()

project(source-record VERSION 0.4.3)
project(source-record VERSION 0.4.4)
set(PROJECT_FULL_NAME "Source Record")

# Set new UUIDs when you start to create a new plugin.
Expand Down
2 changes: 1 addition & 1 deletion buildspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@
}
},
"name": "source-record",
"version": "0.4.3"
"version": "0.4.4"
}
2 changes: 1 addition & 1 deletion source-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ static void source_record_filter_update(void *data, obs_data_t *settings)
obs_encoder_release(filter->encoder);
filter->encoder = NULL;
}
for (int i = 1; i <= MAX_AUDIO_MIXES; i++) {
for (int i = 0; i < MAX_AUDIO_MIXES; i++) {
if (!filter->audioEncoder[i] || obs_encoder_active(filter->audioEncoder[i]))
continue;
obs_encoder_release(filter->audioEncoder[i]);
Expand Down

0 comments on commit 8aeff93

Please sign in to comment.