mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Revert "libobs: Only manipulate input source ref counts"
This reverts commit 6d5bb8b244.
This commit is contained in:
+2
-4
@@ -974,8 +974,7 @@ static void deactivate_source(obs_source_t *source)
|
||||
|
||||
static void show_source(obs_source_t *source)
|
||||
{
|
||||
if (source->info.type == OBS_SOURCE_TYPE_INPUT)
|
||||
obs_source_addref(source);
|
||||
obs_source_addref(source);
|
||||
|
||||
if (source->context.data && source->info.show)
|
||||
source->info.show(source->context.data);
|
||||
@@ -988,8 +987,7 @@ static void hide_source(obs_source_t *source)
|
||||
source->info.hide(source->context.data);
|
||||
obs_source_dosignal(source, "source_hide", "hide");
|
||||
|
||||
if (source->info.type == OBS_SOURCE_TYPE_INPUT)
|
||||
obs_source_release(source);
|
||||
obs_source_release(source);
|
||||
}
|
||||
|
||||
static void activate_tree(obs_source_t *parent, obs_source_t *child,
|
||||
|
||||
Reference in New Issue
Block a user