Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9148662f
Commit
9148662f
authored
Nov 19, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some warnings
parent
e858da02
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
include/video_output.h
include/video_output.h
+2
-2
modules/misc/freetype.c
modules/misc/freetype.c
+8
-3
No files found.
include/video_output.h
View file @
9148662f
...
...
@@ -2,7 +2,7 @@
* video_output.h : video output thread
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: video_output.h,v 1.10
1 2003/11/05 09:16:55 gbazin
Exp $
* $Id: video_output.h,v 1.10
2 2003/11/19 00:06:06 sigmunau
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -141,7 +141,7 @@ struct vout_thread_t
the text renderer */
module_t
*
p_text_renderer_module
;
/**< text renderer module */
/** callback used when a new string needs to be shown on the vout */
int
(
*
pf_add_string
)
(
vout_thread_t
*
,
char
*
,
text_style_t
*
,
int
,
int
(
*
pf_add_string
)
(
vout_thread_t
*
,
byte_t
*
,
text_style_t
*
,
int
,
int
,
int
,
mtime_t
,
mtime_t
);
};
...
...
modules/misc/freetype.c
View file @
9148662f
...
...
@@ -2,7 +2,7 @@
* freetype.c : Put text on the video, using freetype2
*****************************************************************************
* Copyright (C) 2002, 2003 VideoLAN
* $Id: freetype.c,v 1.3
1 2003/11/05 00:39:16 gbazin
Exp $
* $Id: freetype.c,v 1.3
2 2003/11/19 00:06:06 sigmunau
Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
...
...
@@ -77,7 +77,9 @@ static int AddText ( vout_thread_t *, byte_t *, text_style_t *, int,
int
,
int
,
mtime_t
,
mtime_t
);
static
void
FreeString
(
subpicture_t
*
);
#if !defined(HAVE_ICONV)
static
int
GetUnicodeCharFromUTF8
(
byte_t
**
);
#endif
static
line_desc_t
*
NewLine
(
byte_t
*
);
...
...
@@ -760,8 +762,9 @@ static int AddText ( vout_thread_t *p_vout, byte_t *psz_string,
uint32_t
*
p_fribidi_string
;
FriBidiCharType
base_dir
=
FRIBIDI_TYPE_ON
;
p_fribidi_string
=
malloc
(
(
i_string_length
+
1
)
*
sizeof
(
uint32_t
)
);
fribidi_log2vis
(
p_unicode_string
,
i_string_length
,
&
base_dir
,
p_fribidi_string
,
NULL
,
NULL
,
NULL
);
fribidi_log2vis
(
(
FriBidiChar
*
)
p_unicode_string
,
i_string_length
,
&
base_dir
,
(
FriBidiChar
*
)
p_fribidi_string
,
NULL
,
NULL
,
NULL
);
free
(
p_unicode_string
);
p_unicode_string
=
p_fribidi_string
;
p_fribidi_string
[
i_string_length
]
=
0
;
...
...
@@ -902,6 +905,7 @@ static void FreeString( subpicture_t *p_subpic )
free
(
p_string
);
}
#if !defined( HAVE_ICONV )
/* convert one or more utf8 bytes into a unicode character */
static
int
GetUnicodeCharFromUTF8
(
byte_t
**
ppsz_utf8_string
)
{
...
...
@@ -945,6 +949,7 @@ static int GetUnicodeCharFromUTF8( byte_t **ppsz_utf8_string )
(
*
ppsz_utf8_string
)
++
;
return
i_char
;
}
#endif
static
line_desc_t
*
NewLine
(
byte_t
*
psz_string
)
{
...
...
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