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
f68b07bf
Commit
f68b07bf
authored
May 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to copy module in message item
parent
0c86c2c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
include/vlc_messages.h
include/vlc_messages.h
+2
-2
src/misc/messages.c
src/misc/messages.c
+1
-2
No files found.
include/vlc_messages.h
View file @
f68b07bf
...
@@ -50,7 +50,7 @@ typedef struct
...
@@ -50,7 +50,7 @@ typedef struct
int
i_type
;
/**< message type, see below */
int
i_type
;
/**< message type, see below */
uintptr_t
i_object_id
;
uintptr_t
i_object_id
;
const
char
*
psz_object_type
;
const
char
*
psz_object_type
;
c
har
*
psz_module
;
c
onst
char
*
psz_module
;
char
*
psz_msg
;
/**< the message itself */
char
*
psz_msg
;
/**< the message itself */
char
*
psz_header
;
/**< Additional header */
char
*
psz_header
;
/**< Additional header */
}
msg_item_t
;
}
msg_item_t
;
...
@@ -80,7 +80,7 @@ static inline msg_item_t *msg_Copy (const msg_item_t *msg)
...
@@ -80,7 +80,7 @@ static inline msg_item_t *msg_Copy (const msg_item_t *msg)
static
inline
void
msg_Free
(
msg_item_t
*
msg
)
static
inline
void
msg_Free
(
msg_item_t
*
msg
)
{
{
free
(
msg
->
psz_module
);
free
(
(
char
*
)
msg
->
psz_module
);
free
(
msg
->
psz_msg
);
free
(
msg
->
psz_msg
);
free
(
msg
->
psz_header
);
free
(
msg
->
psz_header
);
free
(
msg
);
free
(
msg
);
...
...
src/misc/messages.c
View file @
f68b07bf
...
@@ -370,7 +370,7 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
...
@@ -370,7 +370,7 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
msg
.
i_type
=
i_type
;
msg
.
i_type
=
i_type
;
msg
.
i_object_id
=
(
uintptr_t
)
p_this
;
msg
.
i_object_id
=
(
uintptr_t
)
p_this
;
msg
.
psz_object_type
=
p_this
->
psz_object_type
;
msg
.
psz_object_type
=
p_this
->
psz_object_type
;
msg
.
psz_module
=
strdup
(
psz_module
)
;
msg
.
psz_module
=
psz_module
;
msg
.
psz_msg
=
psz_str
;
msg
.
psz_msg
=
psz_str
;
char
*
psz_header
=
NULL
;
char
*
psz_header
=
NULL
;
...
@@ -439,7 +439,6 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
...
@@ -439,7 +439,6 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
sub
->
func
(
sub
->
opaque
,
&
msg
,
0
);
sub
->
func
(
sub
->
opaque
,
&
msg
,
0
);
}
}
vlc_rwlock_unlock
(
&
bank
->
lock
);
vlc_rwlock_unlock
(
&
bank
->
lock
);
free
(
msg
.
psz_module
);
free
(
msg
.
psz_msg
);
free
(
msg
.
psz_msg
);
free
(
msg
.
psz_header
);
free
(
msg
.
psz_header
);
}
}
...
...
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