mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Merge pull request #617 from RytoEX/master
image-source: Reload file when timestamp has changed
This commit is contained in:
@@ -207,7 +207,7 @@ static void image_source_tick(void *data, float seconds)
|
||||
time_t t = get_modified_timestamp(context->file);
|
||||
context->update_time_elapsed = 0.0f;
|
||||
|
||||
if (context->file_timestamp < t) {
|
||||
if (context->file_timestamp != t) {
|
||||
image_source_load(context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user