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
4ec615d8
Commit
4ec615d8
authored
May 07, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_object_find*: don't check that refcount is zero
Besides, we assert that this isn't the case right before...
parent
19bd84c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/misc/objects.c
src/misc/objects.c
+4
-4
No files found.
src/misc/objects.c
View file @
4ec615d8
...
...
@@ -744,9 +744,10 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
vlc_mutex_lock
(
&
structure_lock
);
assert
(
vlc_internals
(
p_this
)
->
i_refcount
>
0
);
/* If we are of the requested type ourselves, don't look further */
if
(
!
(
i_mode
&
FIND_STRICT
)
&&
p_this
->
i_object_type
==
i_type
&&
vlc_internals
(
p_this
)
->
i_refcount
>
0
)
if
(
!
(
i_mode
&
FIND_STRICT
)
&&
p_this
->
i_object_type
==
i_type
)
{
vlc_object_yield_locked
(
p_this
);
vlc_mutex_unlock
(
&
structure_lock
);
...
...
@@ -802,8 +803,7 @@ void * __vlc_object_find_name( vlc_object_t *p_this, const char *psz_name,
/* If have the requested name ourselves, don't look further */
if
(
!
(
i_mode
&
FIND_STRICT
)
&&
p_this
->
psz_object_name
&&
!
strcmp
(
p_this
->
psz_object_name
,
psz_name
)
&&
vlc_internals
(
p_this
)
->
i_refcount
>
0
)
&&
!
strcmp
(
p_this
->
psz_object_name
,
psz_name
)
)
{
vlc_object_yield_locked
(
p_this
);
vlc_mutex_unlock
(
&
structure_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