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
28e2485a
Commit
28e2485a
authored
Aug 09, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanity checking
parent
eeca6121
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/misc/messages.c
src/misc/messages.c
+10
-7
No files found.
src/misc/messages.c
View file @
28e2485a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* This library provides an interface to the message queue to be used by other
* This library provides an interface to the message queue to be used by other
* modules, especially intf modules. See config.h for output configuration.
* modules, especially intf modules. See config.h for output configuration.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998-200
4
the VideoLAN team
* Copyright (C) 1998-200
5
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
...
@@ -209,8 +209,7 @@ void __msg_Unsubscribe( vlc_object_t *p_this, msg_subscription_t *p_sub )
...
@@ -209,8 +209,7 @@ void __msg_Unsubscribe( vlc_object_t *p_this, msg_subscription_t *p_sub )
/* Remove this subscription */
/* Remove this subscription */
REMOVE_ELEM
(
p_bank
->
pp_sub
,
p_bank
->
i_sub
,
i_index
);
REMOVE_ELEM
(
p_bank
->
pp_sub
,
p_bank
->
i_sub
,
i_index
);
free
(
p_sub
);
if
(
p_sub
)
free
(
p_sub
);
vlc_mutex_unlock
(
&
p_bank
->
lock
);
vlc_mutex_unlock
(
&
p_bank
->
lock
);
}
}
...
@@ -377,8 +376,10 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
...
@@ -377,8 +376,10 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
if
(
p_bank
->
b_overflow
)
if
(
p_bank
->
b_overflow
)
{
{
free
(
p_item
->
psz_module
);
if
(
p_item
->
psz_module
)
free
(
p_item
->
psz_msg
);
free
(
p_item
->
psz_module
);
if
(
p_item
->
psz_msg
)
free
(
p_item
->
psz_msg
);
}
}
vlc_mutex_unlock
(
&
p_bank
->
lock
);
vlc_mutex_unlock
(
&
p_bank
->
lock
);
...
@@ -426,8 +427,10 @@ static void FlushMsg ( msg_bank_t *p_bank )
...
@@ -426,8 +427,10 @@ static void FlushMsg ( msg_bank_t *p_bank )
i_index
!=
i_stop
;
i_index
!=
i_stop
;
i_index
=
(
i_index
+
1
)
%
VLC_MSG_QSIZE
)
i_index
=
(
i_index
+
1
)
%
VLC_MSG_QSIZE
)
{
{
free
(
p_bank
->
msg
[
i_index
].
psz_msg
);
if
(
p_bank
->
msg
[
i_index
].
psz_msg
)
free
(
p_bank
->
msg
[
i_index
].
psz_module
);
free
(
p_bank
->
msg
[
i_index
].
psz_msg
);
if
(
p_bank
->
msg
[
i_index
].
psz_module
)
free
(
p_bank
->
msg
[
i_index
].
psz_module
);
}
}
/* Update the new start value */
/* Update the new start value */
...
...
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