Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4e27ee7b
Commit
4e27ee7b
authored
Nov 01, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: correctly load fonts with complete path
Close #5495
parent
fdb50f7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+13
-4
No files found.
modules/text_renderer/freetype.c
View file @
4e27ee7b
...
...
@@ -616,10 +616,19 @@ static char* Win32_Select( filter_t *p_filter, const char* family,
i_idx
=
0
;
/* */
char
*
psz_tmp
;
if
(
asprintf
(
&
psz_tmp
,
"%s
\\
%s"
,
p_filter
->
p_sys
->
psz_win_fonts_path
,
psz_filename
)
==
-
1
)
return
NULL
;
return
psz_tmp
;
if
(
strchr
(
psz_filename
,
DIR_SEP_CHAR
)
)
return
psz_filename
;
else
{
char
*
psz_tmp
;
if
(
asprintf
(
&
psz_tmp
,
"%s
\\
%s"
,
p_filter
->
p_sys
->
psz_win_fonts_path
,
psz_filename
)
==
-
1
)
{
free
(
psz_filename
);
return
NULL
;
}
free
(
psz_filename
);
return
psz_tmp
;
}
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment