Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8c4e6727
Commit
8c4e6727
authored
Aug 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code factor
parent
48f29e4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
src/misc/messages.c
src/misc/messages.c
+12
-14
No files found.
src/misc/messages.c
View file @
8c4e6727
...
...
@@ -78,21 +78,19 @@ static void PrintMsg ( vlc_object_t *, msg_item_t * );
*/
void
__msg_Create
(
vlc_object_t
*
p_this
)
{
int
i
;
vlc_mutex_init
(
p_this
,
&
(
p_this
->
p_libvlc
->
msg_bank
.
lock
)
);
#define QUEUE_INIT(i) \
vlc_mutex_init( p_this, &QUEUE(i).lock ); \
QUEUE(i).b_overflow = VLC_FALSE; \
QUEUE(i).i_id = i; \
QUEUE(i).i_start = 0; \
QUEUE(i).i_stop = 0; \
QUEUE(i).i_sub = 0; \
QUEUE(i).pp_sub = 0;
QUEUE_INIT
(
0
);
QUEUE_INIT
(
1
);
#undef QUEUE_INIT
for
(
i
=
0
;
i
<
2
;
i
++
)
{
vlc_mutex_init
(
p_this
,
&
QUEUE
(
i
).
lock
);
QUEUE
(
i
).
b_overflow
=
VLC_FALSE
;
QUEUE
(
i
).
i_id
=
i
;
QUEUE
(
i
).
i_start
=
0
;
QUEUE
(
i
).
i_stop
=
0
;
QUEUE
(
i
).
i_sub
=
0
;
QUEUE
(
i
).
pp_sub
=
0
;
}
#ifdef UNDER_CE
QUEUE
(
MSG_QUEUE_NORMAL
).
logfile
=
...
...
@@ -312,7 +310,7 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
vasprintf
(
&
psz_str
,
psz_format
,
args
);
va_end
(
args
);
#else
psz_str
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
psz_str
=
(
char
*
)
malloc
(
i_size
);
#endif
if
(
psz_str
==
NULL
)
...
...
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