f487954395
Although obs_source_add_active_child indicates to a child source that a child source needs to activate, sources will not activate until the next tick. However, because the transition start call is made from within the UI thread, the time in which the media source renders is not guaranteed to be activated by the time the stinger renders due to a potential race. Thus he media source of a stinger is not guaranteed to be activated, causing a brief flash. This also applies when stopping a stinger. This problem normally doesn't really affect normal stingers; instead, it affects track matte stingers because it is critical for them to be on time in order to have the mask data. In order to solve this, check to see if the underlying media source is actually active and able to render when performing the masking.