MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / ResetSignalHandler

Method ResetSignalHandler

plugins/base/macro-condition-media.cpp:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void MacroConditionMedia::ResetSignalHandler()
525{
526 _signals.clear();
527 OBSSourceAutoRelease mediasource =
528 obs_weak_source_get_source(_source.GetSource());
529 signal_handler_t *sh = obs_source_get_signal_handler(mediasource);
530 _signals.emplace_back(sh, "media_stopped", MediaStopped, this);
531 _signals.emplace_back(sh, "media_ended", MediaEnded, this);
532 _signals.emplace_back(sh, "media_next", MediaNext, this);
533}
534
535void MacroConditionMedia::MediaStopped(void *data, calldata_t *)
536{

Callers 2

SourceTypeChangedMethod · 0.80
SourceChangedMethod · 0.80

Calls 1

GetSourceMethod · 0.45

Tested by

no test coverage detected