dont fail on patch

This commit is contained in:
Roy Shilkrot 2023-08-13 18:00:23 +03:00
parent 357b429b80
commit e330d4e211
4 changed files with 24 additions and 3 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@
!LICENSE !LICENSE
!README.md !README.md
!/vendor !/vendor
!patch_libobs.diff
# Exclude lock files # Exclude lock files
*.lock.json *.lock.json

View File

@ -76,9 +76,8 @@ function(_setup_obs_studio)
message(STATUS "Patch libobs") message(STATUS "Patch libobs")
execute_process( execute_process(
COMMAND patch --forward "libobs/CMakeLists.txt" "${CMAKE_CURRENT_SOURCE_DIR}/patch_libobs.diff" COMMAND patch --forward "libobs/CMakeLists.txt" "${CMAKE_CURRENT_SOURCE_DIR}/patch_libobs.diff"
RESULT_VARIABLE _process_result COMMAND_ERROR_IS_FATAL ANY RESULT_VARIABLE _process_result
WORKING_DIRECTORY "${dependencies_dir}/${_obs_destination}" WORKING_DIRECTORY "${dependencies_dir}/${_obs_destination}")
)
message(STATUS "Patch - done") message(STATUS "Patch - done")
message(STATUS "Configure ${label} (${arch})") message(STATUS "Configure ${label} (${arch})")

20
patch_libobs.diff Normal file
View File

@ -0,0 +1,20 @@
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
index d2e2671..5a9242a 100644
--- a/libobs/CMakeLists.txt
+++ b/libobs/CMakeLists.txt
@@ -263,6 +263,7 @@ set(public_headers
graphics/vec3.h
graphics/vec4.h
media-io/audio-io.h
+ media-io/audio-resampler.h
media-io/frame-rate.h
media-io/media-io-defs.h
media-io/video-io.h
@@ -287,6 +288,7 @@ set(public_headers
util/base.h
util/bmem.h
util/c99defs.h
+ util/circlebuf.h
util/darray.h
util/profiler.h
util/sse-intrin.h

View File

@ -263,6 +263,7 @@ void process_audio_from_buffer(struct transcription_filter_data *gf)
if (gf->log_words) { if (gf->log_words) {
obs_log(LOG_INFO, "skipping inference"); obs_log(LOG_INFO, "skipping inference");
} }
gf->setTextCallback("");
} }
// end of timer // end of timer