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
3e1abbd7
Commit
3e1abbd7
authored
Oct 15, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
messages: we have a vasprintf replacement now, remove the old workarounds.
parent
1d0cbdf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
src/misc/messages.c
src/misc/messages.c
+0
-15
No files found.
src/misc/messages.c
View file @
3e1abbd7
...
...
@@ -338,10 +338,6 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
vlc_gc_init
(
p_item
,
msg_Free
);
p_item
->
psz_module
=
p_item
->
psz_msg
=
p_item
->
psz_header
=
NULL
;
#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS)
int
i_size
=
strlen
(
psz_format
)
+
INTF_MAX_MSG_SIZE
;
#endif
if
(
p_this
->
i_flags
&
OBJECT_FLAGS_QUIET
||
(
p_this
->
i_flags
&
OBJECT_FLAGS_NODBG
&&
i_type
==
VLC_MSG_DBG
)
)
goto
out
;
...
...
@@ -403,14 +399,10 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
#endif
/* Convert message to string */
#if defined(HAVE_VASPRINTF) && !defined(__APPLE__) && !defined( SYS_BEOS )
vlc_va_copy
(
args
,
_args
);
if
(
vasprintf
(
&
psz_str
,
psz_format
,
args
)
==
-
1
)
psz_str
=
NULL
;
va_end
(
args
);
#else
psz_str
=
(
char
*
)
malloc
(
i_size
);
#endif
if
(
psz_str
==
NULL
)
{
...
...
@@ -464,13 +456,6 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
p_obj
=
p_obj
->
p_parent
;
}
#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS)
vlc_va_copy
(
args
,
_args
);
vsnprintf
(
psz_str
,
i_size
,
psz_format
,
args
);
va_end
(
args
);
psz_str
[
i_size
-
1
]
=
0
;
/* Just in case */
#endif
msg_bank_t
*
p_queue
=
&
QUEUE
;
vlc_mutex_lock
(
&
p_queue
->
lock
);
...
...
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