Check for file changes on images

duilio1337

New Member
I would like to see the option to check for file changes to images like obs classic currently has. Saw this requested about a year ago and was wondering if there has been any progress on this.
 

Attachments

  • Captureasd.PNG
    Captureasd.PNG
    772 bytes · Views: 48

Lain

Forum Admin
Lain
Forum Moderator
Developer
But your image is PNG. Give me two files that I can test overwriting with. First file, and second file you overwrite the first file with.
 

duilio1337

New Member
I'm having trouble using the site attachments.
de_cache.jpg
q.jpg


All of the images I'm using on obs are JPGs like these.
 

Attachments

  • q.jpg
    q.jpg
    17.2 KB · Views: 23

Lain

Forum Admin
Lain
Forum Moderator
Developer
Ah I think I see the problem. It checks the timestamp of the file, and if the timestamp is *greater* than the old timestamp it reloads the file. I think what you're doing is overwriting a newer file with an older file, so it bypasses the check for that reason. I should be able to fix it to just check for a changed timestamp rather than a newer file timestamp.
 

RytoEX

Forum Admin
Forum Moderator
Developer
https://github.com/jp9000/obs-studio/commit/1946ee644374adc5c2e3467177793dbb0eb9f1d0
https://github.com/jp9000/obs-studio/commit/c8a81bba7255362efff16d6be53d937ff1bf8066

Merged into OBS Studio. Looks like this will be available in the next release. Thanks Jim!

Caveat: I think that overwriting or copying files to a common filename will still have this issue if different files with exactly the same modified timestamp are copied in sequence one right after the other. This issue may also still arise if the file is overwritten, but the modified timestamp does not change. I have not tested these edge-cases. Baby steps.
 
Last edited:
Top