mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Utils(GetTransitionDuration): return 0 if transition is a cut transition
This commit is contained in:
parent
5d74d5d03e
commit
bfd26493ab
@ -367,6 +367,12 @@ int Utils::GetTransitionDuration(obs_source_t* transition) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
QString transitionKind = obs_source_get_id(transition);
|
||||
if (transitionKind == "cut_transition") {
|
||||
// If this is a Cut transition, return 0
|
||||
return 0;
|
||||
}
|
||||
|
||||
OBSSourceAutoRelease destinationScene = obs_transition_get_active_source(transition);
|
||||
OBSDataAutoRelease destinationSettings = obs_source_get_private_settings(destinationScene);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user