Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4ca43f74
Commit
4ca43f74
authored
Aug 12, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osd_text: Fix a bad vasprintf usage.
parent
60b953e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/osd/osd_text.c
src/osd/osd_text.c
+7
-5
No files found.
src/osd/osd_text.c
View file @
4ca43f74
...
...
@@ -123,18 +123,20 @@ int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel,
void
osd_Message
(
spu_t
*
p_spu
,
int
i_channel
,
char
*
psz_format
,
...
)
{
char
*
psz_string
;
va_list
args
;
if
(
p_spu
)
{
char
*
psz_string
;
va_start
(
args
,
psz_format
);
vasprintf
(
&
psz_string
,
psz_format
,
args
);
if
(
vasprintf
(
&
psz_string
,
psz_format
,
args
)
!=
-
1
)
{
osd_ShowTextRelative
(
p_spu
,
i_channel
,
psz_string
,
NULL
,
OSD_ALIGN_TOP
|
OSD_ALIGN_RIGHT
,
30
,
20
,
1000000
);
free
(
psz_string
);
}
va_end
(
args
);
}
}
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