New upstream version 26.1.0+dfsg1
This commit is contained in:
parent
040dcc3fc2
commit
013818c4af
594 changed files with 19576 additions and 4478 deletions
4
deps/CMakeLists.txt
vendored
4
deps/CMakeLists.txt
vendored
|
|
@ -19,9 +19,7 @@ if(WIN32)
|
|||
add_subdirectory(lzma)
|
||||
endif()
|
||||
|
||||
if(BUILD_CAPTIONS)
|
||||
add_subdirectory(libcaption)
|
||||
endif()
|
||||
add_subdirectory(libcaption)
|
||||
|
||||
find_package(Jansson 2.5 QUIET)
|
||||
|
||||
|
|
|
|||
8
deps/json11/json11.cpp
vendored
8
deps/json11/json11.cpp
vendored
|
|
@ -441,9 +441,9 @@ struct JsonParser final {
|
|||
*/
|
||||
char get_next_token() {
|
||||
consume_garbage();
|
||||
if (failed) return (char)0;
|
||||
if (failed) return static_cast<char>(0);
|
||||
if (i == str.size())
|
||||
return fail("unexpected end of input", (char)0);
|
||||
return fail("unexpected end of input", static_cast<char>(0));
|
||||
|
||||
return str[i++];
|
||||
}
|
||||
|
|
@ -775,8 +775,10 @@ bool Json::has_shape(const shape & types, string & err) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
const auto& obj_items = object_items();
|
||||
for (auto & item : types) {
|
||||
if ((*this)[item.first].type() != item.second) {
|
||||
const auto it = obj_items.find(item.first);
|
||||
if (it == obj_items.cend() || it->second.type() != item.second) {
|
||||
err = "bad type for " + item.first + " in " + dump();
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
6
deps/media-playback/media-playback/decode.c
vendored
6
deps/media-playback/media-playback/decode.c
vendored
|
|
@ -246,14 +246,14 @@ void mp_decode_push_packet(struct mp_decode *decode, AVPacket *packet)
|
|||
static inline int64_t get_estimated_duration(struct mp_decode *d,
|
||||
int64_t last_pts)
|
||||
{
|
||||
if (last_pts)
|
||||
return d->frame_pts - last_pts;
|
||||
|
||||
if (d->audio) {
|
||||
return av_rescale_q(d->in_frame->nb_samples,
|
||||
(AVRational){1, d->in_frame->sample_rate},
|
||||
(AVRational){1, 1000000000});
|
||||
} else {
|
||||
if (last_pts)
|
||||
return d->frame_pts - last_pts;
|
||||
|
||||
if (d->last_duration)
|
||||
return d->last_duration;
|
||||
|
||||
|
|
|
|||
4
deps/obs-scripting/CMakeLists.txt
vendored
4
deps/obs-scripting/CMakeLists.txt
vendored
|
|
@ -87,10 +87,6 @@ if(UI_ENABLED)
|
|||
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/UI/obs-frontend-api")
|
||||
endif()
|
||||
|
||||
IF(BUILD_CAPTIONS)
|
||||
string(TOUPPER "${BUILD_CAPTIONS}" BUILD_CAPTIONS)
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/obs-scripting-config.h.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/obs-scripting-config.h")
|
||||
|
|
|
|||
1
deps/obs-scripting/obs-scripting-config.h.in
vendored
1
deps/obs-scripting/obs-scripting-config.h.in
vendored
|
|
@ -21,4 +21,3 @@
|
|||
#define COMPILE_LUA @LUAJIT_FOUND@
|
||||
#define COMPILE_PYTHON @PYTHON_FOUND@
|
||||
#define UI_ENABLED @UI_ENABLED@
|
||||
#define BUILD_CAPTIONS @BUILD_CAPTIONS@
|
||||
|
|
|
|||
2
deps/obs-scripting/obs-scripting-lua.c
vendored
2
deps/obs-scripting/obs-scripting-lua.c
vendored
|
|
@ -456,7 +456,7 @@ static int obs_lua_signal_handler_disconnect(lua_State *script)
|
|||
const char *cb_signal =
|
||||
calldata_string(&cb->base.extra, "signal");
|
||||
|
||||
if (cb_signal && strcmp(signal, cb_signal) != 0 &&
|
||||
if (cb_signal && strcmp(signal, cb_signal) == 0 &&
|
||||
handler == cb_handler)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue