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
e1c0a5c0
Commit
e1c0a5c0
authored
Oct 24, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/misc/freetype.c: Compilation fixes.
parent
f581e336
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
modules/misc/freetype.c
modules/misc/freetype.c
+11
-7
No files found.
modules/misc/freetype.c
View file @
e1c0a5c0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* freetype.c : Put text on the video, using freetype2
* freetype.c : Put text on the video, using freetype2
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002, 2003 VideoLAN
* Copyright (C) 2002, 2003 VideoLAN
* $Id: freetype.c,v 1.2
6 2003/10/24 11:28:57
sam Exp $
* $Id: freetype.c,v 1.2
7 2003/10/24 14:13:59
sam Exp $
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
*
...
@@ -31,7 +31,11 @@
...
@@ -31,7 +31,11 @@
#include <vlc/vout.h>
#include <vlc/vout.h>
#include <osd.h>
#include <osd.h>
#include <math.h>
#include <math.h>
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
#include <ft2build.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_FREETYPE_H
#include FT_GLYPH_H
#include FT_GLYPH_H
...
@@ -719,22 +723,22 @@ static int AddText ( vout_thread_t *p_vout, byte_t *psz_string,
...
@@ -719,22 +723,22 @@ static int AddText ( vout_thread_t *p_vout, byte_t *psz_string,
msg_Warn
(
p_vout
,
"Unable to do convertion"
);
msg_Warn
(
p_vout
,
"Unable to do convertion"
);
goto
error
;
goto
error
;
}
}
{
{
char
*
p_in_buffer
;
char
*
p_in_buffer
,
*
p_out_buffer
;
uint32_t
*
p_out_buffer
;
int
i_in_bytes
,
i_out_bytes
,
i_out_bytes_left
,
i_ret
;
int
i_in_bytes
,
i_out_bytes
,
i_out_bytes_left
,
i_ret
;
i_in_bytes
=
strlen
(
psz_string
);
i_in_bytes
=
strlen
(
psz_string
);
i_out_bytes
=
i_in_bytes
*
sizeof
(
uint32_t
);
i_out_bytes
=
i_in_bytes
*
sizeof
(
uint32_t
);
i_out_bytes_left
=
i_out_bytes
;
i_out_bytes_left
=
i_out_bytes
;
p_in_buffer
=
psz_string
;
p_in_buffer
=
psz_string
;
p_out_buffer
=
p_unicode_string
;
p_out_buffer
=
(
char
*
)
p_unicode_string
;
i_ret
=
iconv
(
iconv_handle
,
&
p_in_buffer
,
&
i_in_bytes
,
(
char
**
)
&
p_out_buffer
,
&
i_out_bytes_left
);
i_ret
=
iconv
(
iconv_handle
,
&
p_in_buffer
,
&
i_in_bytes
,
&
p_out_buffer
,
&
i_out_bytes_left
);
if
(
i_in_bytes
)
if
(
i_in_bytes
)
{
{
msg_Warn
(
p_vout
,
"Failed to convert string to unicode (%s), bytes left %d"
,
strerror
(
errno
),
i_in_bytes
);
msg_Warn
(
p_vout
,
"Failed to convert string to unicode (%s), bytes left %d"
,
strerror
(
errno
),
i_in_bytes
);
goto
error
;
goto
error
;
}
}
*
p_out_buffer
=
0
;
*
(
uint32_t
*
)
p_out_buffer
=
0
;
i_string_length
=
(
i_out_bytes
-
i_out_bytes_left
)
/
sizeof
(
uint32_t
);
i_string_length
=
(
i_out_bytes
-
i_out_bytes_left
)
/
sizeof
(
uint32_t
);
}
}
...
...
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