mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
text-freetype2: Check if using file with from_file
This commit is contained in:
parent
3f3a587f48
commit
50b80925e3
|
@ -205,7 +205,7 @@ static void ft2_video_tick(void *data, float seconds)
|
|||
{
|
||||
struct ft2_source *srcdata = data;
|
||||
if (srcdata == NULL) return;
|
||||
if (srcdata->text_file == NULL) return;
|
||||
if (!srcdata->from_file) return;
|
||||
|
||||
if (os_gettime_ns() - srcdata->last_checked >= 1000000000) {
|
||||
time_t t = get_modified_timestamp(srcdata->text_file);
|
||||
|
|
Loading…
Reference in a new issue