summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_fontselect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c
index aea3c23..efd4a39 100644
--- a/libass/ass_fontselect.c
+++ b/libass/ass_fontselect.c
@@ -179,7 +179,9 @@ ass_font_provider_add_font(ASS_FontProvider *provider,
ASS_FontSelector *selector = provider->parent;
ASS_FontInfo *info;
- // TODO: sanity checks. do we have a path or valid get_face function?
+ // XXX: there's no support for memory fonts yet
+ if (!path)
+ return 0;
weight = meta->weight;
slant = meta->slant;