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
5007283a
Commit
5007283a
authored
Sep 15, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg_...: accept filename as module
parent
6ef248d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/misc/messages.c
src/misc/messages.c
+15
-0
No files found.
src/misc/messages.c
View file @
5007283a
...
...
@@ -84,6 +84,21 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
if
(
obj
!=
NULL
&&
obj
->
i_flags
&
OBJECT_FLAGS_QUIET
)
return
;
/* Get basename from the module filename */
char
*
p
=
strrchr
(
module
,
'/'
);
if
(
p
!=
NULL
)
module
=
p
;
p
=
strchr
(
module
,
'.'
);
size_t
modlen
=
(
p
!=
NULL
)
?
(
p
-
module
)
:
1
;
char
modulebuf
[
modlen
];
if
(
p
!=
NULL
)
{
memcpy
(
modulebuf
,
module
,
modlen
);
modulebuf
[
modlen
]
=
'\0'
;
module
=
modulebuf
;
}
/* C locale to get error messages in English in the logs */
locale_t
c
=
newlocale
(
LC_MESSAGES_MASK
,
"C"
,
(
locale_t
)
0
);
locale_t
locale
=
uselocale
(
c
);
...
...
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