mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
libobs: Add video_reset signal
Signals when a video reset has completed. This is mainly useful when canvases or views are used, whose mixes will have been freed or recreated during the reset.
This commit is contained in:
committed by
Ryan Foster
parent
4459041e7e
commit
66da1e42c7
@@ -695,6 +695,9 @@ static int obs_init_video(struct obs_video_info *ovi)
|
||||
|
||||
video->thread_initialized = true;
|
||||
|
||||
calldata_t parameters = {0};
|
||||
signal_handler_signal(obs->signals, "video_reset", ¶meters);
|
||||
|
||||
return OBS_VIDEO_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -1053,6 +1056,8 @@ static const char *obs_signals[] = {
|
||||
"void hotkey_unregister(ptr hotkey)",
|
||||
"void hotkey_bindings_changed(ptr hotkey)",
|
||||
|
||||
"void video_reset()",
|
||||
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user