mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 02:42:26 -04:00
libobs, frontend: Signal transition_stop for cancelled transitions
This commit is contained in:
@@ -524,6 +524,7 @@ static bool stinger_audio_render(void *data, uint64_t *ts_out, struct obs_source
|
||||
static void stinger_transition_start(void *data)
|
||||
{
|
||||
struct stinger_info *s = data;
|
||||
enum obs_media_state state;
|
||||
|
||||
if (s->media_source) {
|
||||
calldata_t cd = {0};
|
||||
@@ -531,7 +532,8 @@ static void stinger_transition_start(void *data)
|
||||
proc_handler_t *ph = obs_source_get_proc_handler(s->media_source);
|
||||
proc_handler_t *matte_ph = s->matte_source ? obs_source_get_proc_handler(s->matte_source) : NULL;
|
||||
|
||||
if (s->transitioning) {
|
||||
state = obs_source_media_get_state(s->media_source);
|
||||
if (s->transitioning || state == OBS_MEDIA_STATE_PLAYING) {
|
||||
proc_handler_call(ph, "restart", &cd);
|
||||
if (matte_ph) {
|
||||
proc_handler_call(matte_ph, "restart", &cd);
|
||||
|
||||
Reference in New Issue
Block a user