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
154ea505
Commit
154ea505
authored
Apr 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objects: limit development-related error message to debug builds
parent
f5a0b79a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
src/misc/objects.c
src/misc/objects.c
+19
-3
No files found.
src/misc/objects.c
View file @
154ea505
...
...
@@ -428,9 +428,25 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this, const char *psz_name )
{
vlc_object_t
*
p_found
;
/* Reading psz_object_name from a separate inhibits thread-safety.
* Use a libvlc address variable instead for that sort of things! */
msg_Err
(
p_this
,
"%s(
\"
%s
\"
) is not safe!"
,
__func__
,
psz_name
);
/* The object name is not thread-safe, provides no warranty that the
* object is fully initialized and still active, and that its owner can
* deal with asynchronous and external state changes. There may be multiple
* objects with the same name, and the function may fail even if a matching
* object exists. DO NOT USE THIS IN NEW CODE. */
#ifndef NDEBUG
/* This was officially deprecated on August 19 2009. For the convenience of
* wannabe code janitors, this is the list of names that remain used
* and unfixed since then. */
static
const
char
const
bad
[][
11
]
=
{
"adjust"
,
"clone"
,
"colorthres"
,
"erase"
,
"extract"
,
"gradient"
,
"logo"
,
"marq"
,
"motionblur"
,
"puzzle"
,
"rotate"
,
"sharpen"
,
"transform"
,
"v4l2"
,
"wall"
};
static
const
char
const
poor
[][
13
]
=
{
"invert"
,
"magnify"
,
"motiondetect"
,
"psychedelic"
,
"ripple"
,
"wave"
};
if
(
bsearch
(
psz_name
,
bad
,
15
,
11
,
(
void
*
)
strcmp
)
==
NULL
&&
bsearch
(
psz_name
,
poor
,
6
,
13
,
(
void
*
)
strcmp
)
==
NULL
)
return
NULL
;
msg_Err
(
p_this
,
"looking for object
\"
%s
\"
... FIXME XXX"
,
psz_name
);
#endif
libvlc_lock
(
p_this
->
p_libvlc
);
vlc_mutex_lock
(
&
name_lock
);
...
...
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