0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

image-source: Use os_stat instead of stat

(Note: This commit also modified text-freetype2)

Prevents issues from being able to update files that may not be using
the current system encoding on windows.
This commit is contained in:
jp9000 2016-04-03 18:03:52 -07:00
parent 81ac57cd6c
commit d8a357e01a
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ struct image_source {
static time_t get_modified_timestamp(const char *filename)
{
struct stat stats;
if (stat(filename, &stats) != 0)
if (os_stat(filename, &stats) != 0)
return -1;
return stats.st_mtime;
}

View File

@ -319,7 +319,7 @@ time_t get_modified_timestamp(char *filename)
// stat is apparently terrifying and horrible, but we only call it once
// every second at most.
if (stat(filename, &stats) != 0)
if (os_stat(filename, &stats) != 0)
return -1;
return stats.st_mtime;