Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image-source: Reload file when timestamp has changed #617

Merged
merged 1 commit into from
Sep 17, 2016

Conversation

RytoEX
Copy link
Member

@RytoEX RytoEX commented Sep 14, 2016

This commit fixes the issue outlined in the following thread:
https://obsproject.com/forum/threads/check-for-file-changes-on-images.50045/

When the image source file was replaced by an outside process, it would only reload when the file's new timestamp was newer than the file's previous timestamp. If you're copying image files onto a common file name (for example, "C:\obs-stuff\image.jpg"), and you have an Image Source targeting that common file name, then this could cause the image source to get stuck on the image that has the newest timestamp. This fixes that behavior. Now an image source will reload any time the file's new timestamp is different than its previous timestamp.

I've built and tested this change on Windows 10 64-bit. I welcome additional testing or feedback.

This commit fixes the issue outlined in the following thread:
https://obsproject.com/forum/threads/50045/

When the image source file was replaced by an outside process, it would
only reload when the file's new timestamp was newer than the file's
previous timestamp.  This fixes that behavior.  Now an image source
will reload any time the file's new timestamp is different than its
previous timestamp.
@ONSBalder
Copy link

Can one of the admins verify this patch?

@jp9000 jp9000 merged commit 1946ee6 into obsproject:master Sep 17, 2016
jacklinw pushed a commit to epicsf/obs-studio that referenced this pull request Aug 13, 2017
image-source: Reload file when timestamp has changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants