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
cfe30ad2
Commit
cfe30ad2
authored
Aug 21, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow logging error messages with no VLC object (NULL)
parent
44cda990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/misc/messages.c
src/misc/messages.c
+3
-5
No files found.
src/misc/messages.c
View file @
cfe30ad2
...
...
@@ -113,7 +113,7 @@ void vlc_Unsubscribe (msg_subscription_t *sub)
/**
* Emit a log message.
* \param obj VLC object emitting the message
* \param obj VLC object emitting the message
or NULL
* \param type VLC_MSG_* message type (info, error, warning or debug)
* \param module name of module from which the message come
* (normally MODULE_STRING)
...
...
@@ -140,9 +140,7 @@ static void PrintMsg (void *, int, const msg_item_t *, const char *, va_list);
void
vlc_vaLog
(
vlc_object_t
*
obj
,
int
type
,
const
char
*
module
,
const
char
*
format
,
va_list
args
)
{
assert
(
obj
!=
NULL
);
if
(
obj
->
i_flags
&
OBJECT_FLAGS_QUIET
)
if
(
obj
!=
NULL
&&
obj
->
i_flags
&
OBJECT_FLAGS_QUIET
)
return
;
/* C locale to get error messages in English in the logs */
...
...
@@ -209,7 +207,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
msg_item_t
msg
;
msg
.
i_object_id
=
(
uintptr_t
)
obj
;
msg
.
psz_object_type
=
obj
->
psz_object_type
;
msg
.
psz_object_type
=
(
obj
!=
NULL
)
?
obj
->
psz_object_type
:
"generic"
;
msg
.
psz_module
=
module
;
msg
.
psz_header
=
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