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
f2fd47b4
Commit
f2fd47b4
authored
May 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to copy msg_item_t.psz_header
parent
fc908a6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
include/vlc_messages.h
include/vlc_messages.h
+2
-2
modules/misc/logger.c
modules/misc/logger.c
+4
-4
src/misc/messages.c
src/misc/messages.c
+2
-4
No files found.
include/vlc_messages.h
View file @
f2fd47b4
...
...
@@ -51,8 +51,8 @@ typedef struct
uintptr_t
i_object_id
;
const
char
*
psz_object_type
;
const
char
*
psz_module
;
const
char
*
psz_header
;
/**< Additional header */
char
*
psz_msg
;
/**< the message itself */
char
*
psz_header
;
/**< Additional header */
}
msg_item_t
;
/* Message types */
...
...
@@ -81,8 +81,8 @@ static inline msg_item_t *msg_Copy (const msg_item_t *msg)
static
inline
void
msg_Free
(
msg_item_t
*
msg
)
{
free
((
char
*
)
msg
->
psz_module
);
free
((
char
*
)
msg
->
psz_header
);
free
(
msg
->
psz_msg
);
free
(
msg
->
psz_header
);
free
(
msg
);
}
...
...
modules/misc/logger.c
View file @
f2fd47b4
...
...
@@ -429,11 +429,11 @@ static void SyslogPrint( const msg_item_t *p_msg )
int
i_priority
=
i_prio
[
p_msg
->
i_type
];
if
(
p_msg
->
psz_header
)
syslog
(
i_priority
,
"
%s %s%s%s"
,
p_msg
->
psz_header
,
p_msg
->
psz_module
,
ppsz_type
[
p_msg
->
i_type
],
p_msg
->
psz_msg
);
syslog
(
i_priority
,
"
[%s] %s%s%s"
,
p_msg
->
psz_header
,
p
_msg
->
psz_module
,
p
psz_type
[
p_msg
->
i_type
],
p_msg
->
psz_msg
);
else
syslog
(
i_priority
,
"%s%s%s"
,
p_msg
->
psz_module
,
ppsz_type
[
p_msg
->
i_type
],
p_msg
->
psz_msg
);
syslog
(
i_priority
,
"%s%s%s"
,
p
_msg
->
psz_module
,
p
psz_type
[
p_msg
->
i_type
],
p_msg
->
psz_msg
);
}
#endif
...
...
src/misc/messages.c
View file @
f2fd47b4
...
...
@@ -376,8 +376,7 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
for
(
vlc_object_t
*
o
=
p_this
;
o
!=
NULL
;
o
=
o
->
p_parent
)
if
(
o
->
psz_header
!=
NULL
)
{
if
(
asprintf
(
&
msg
.
psz_header
,
"[%s]"
,
o
->
psz_header
)
==
-
1
)
msg
.
psz_header
=
NULL
;
msg
.
psz_header
=
o
->
psz_header
;
break
;
}
...
...
@@ -418,7 +417,6 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
}
vlc_rwlock_unlock
(
&
bank
->
lock
);
free
(
msg
.
psz_msg
);
free
(
msg
.
psz_header
);
}
/*****************************************************************************
...
...
@@ -484,7 +482,7 @@ static void PrintMsg ( vlc_object_t *p_this, const msg_item_t *p_item )
fprintf
(
stream
,
priv
->
b_color
?
"["
GREEN
"%p"
GRAY
"] "
:
"[%p] "
,
(
void
*
)
p_item
->
i_object_id
);
if
(
p_item
->
psz_header
!=
NULL
)
utf8_fprintf
(
stream
,
"
%s
"
,
p_item
->
psz_header
);
utf8_fprintf
(
stream
,
"
[%s]
"
,
p_item
->
psz_header
);
utf8_fprintf
(
stream
,
"%s %s%s: "
,
p_item
->
psz_module
,
objtype
,
msgtype
[
i_type
]);
if
(
priv
->
b_color
)
...
...
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