Repository navigation
Conversation
|
The downside with this approach is that the image will "blip out" for the duration of the polling interval. The result is still better than what we have now, where the image will never attempt to load again. The ideal fix would be to avoid unloading the currently displayed image until a successful load has occurred. I have attempted to make that change here: adampoit@6da8ee4. I'm happy to go either direction, but my original proposal seemed like the path of least resistance. Allocating a temp struct and using |
Allows an image source to attempt another load, at the regular polling interval, even if the timestamp is unchanged. This handles situations where a previous load attempt may have failed, such as the file being locked by another process.
76f0830 to
11a4386
Compare
|
I guess the underlying root issue is that Windows has mandatory file locks (POSIX commonly doesn't use them) and if a file is locked one cannot even get the modification timestamp? Because on POSIX systems the modification timestamp only changes if the actual file is renamed, which then also updates |
Description
Allows an image source to attempt another load, at the regular polling interval, even if the timestamp is unchanged. This handles situations where a previous load attempt may have failed, such as the file being locked by another process.
Motivation and Context
If an image source attempts to load an image and it fails, the image source will never reattempt to load the image until the file timestamp changes.
I came across this issue when using an external program to update images for my stream. I noticed that occasionally an image update would coincide with the image not showing in OBS. I dug into the logs and noticed the following entries:
Upon further investigation, I saw this problem described in this issue comment. While I could not recreate the text source problem described in the original issue, I was able to consistently reproduce the problem with an image source.
How Has This Been Tested?
I tested on Windows 11 using the following PowerShell script:
If I ran the script with
-lock $true, I was able to consistently reproduce the issue. Thelockparameter was included in the script so I could easily reset the test.Types of changes
Checklist: