Skip to content

Commit

Permalink
fix reference count
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jan 22, 2022
1 parent 6daf865 commit a1bb72a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.12..4.0)

project(move-transition VERSION 2.5.5)
project(move-transition VERSION 2.5.6)
set(PROJECT_FULL_NAME "Move Transition")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h)
Expand Down
13 changes: 0 additions & 13 deletions move-source-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,15 +963,6 @@ void move_source_source_rename(void *data, calldata_t *call_data)
obs_data_release(settings);
}

static void move_source_frontend_event(enum obs_frontend_event event,
void *private_data)
{
if (event == OBS_FRONTEND_EVENT_SCENE_CHANGED) {
int i = 0;
} else if (event == OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED) {
int i = 0;
}
}

static void *move_source_create(obs_data_t *settings, obs_source_t *source)
{
Expand All @@ -983,16 +974,12 @@ static void *move_source_create(obs_data_t *settings, obs_source_t *source)
signal_handler_connect(obs_get_signal_handler(), "source_rename",
move_source_source_rename, move_source);

obs_frontend_add_event_callback(move_source_frontend_event,
move_source);
return move_source;
}

static void move_source_destroy(void *data)
{
struct move_source_info *move_source = data;
obs_frontend_remove_event_callback(move_source_frontend_event,
move_source);
signal_handler_disconnect(obs_get_signal_handler(), "source_rename",
move_source_source_rename, move_source);

Expand Down
4 changes: 4 additions & 0 deletions move-value-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ void move_value_start(struct move_value_info *move_value)
move_value_start(filter_data);
}
}
obs_source_release(filter);
}
}
}
Expand Down Expand Up @@ -1639,6 +1640,8 @@ void move_value_tick(void *data, float seconds)
obs_source_t *source =
move_value->filter ? move_value->filter
: obs_filter_get_parent(move_value->source);
if (!source)
return;
obs_data_t *ss = obs_source_get_settings(source);
if (move_value->settings) {
const size_t count = obs_data_array_count(move_value->settings);
Expand Down Expand Up @@ -1865,6 +1868,7 @@ void move_value_tick(void *data, float seconds)
filter);
move_value_start(filter_data);
}
obs_source_release(filter);
}
}
} else if (move_value->next_move_on == NEXT_MOVE_ON_HOTKEY &&
Expand Down

0 comments on commit a1bb72a

Please sign in to comment.