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
6c385c50
Commit
6c385c50
authored
May 07, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't check for 0 refcount.
If it happens, there is a bug, and we'll assert in _yield.
parent
4ec615d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/misc/objects.c
src/misc/objects.c
+4
-8
No files found.
src/misc/objects.c
View file @
6c385c50
...
...
@@ -1297,8 +1297,7 @@ static vlc_object_t * FindObject( vlc_object_t *p_this, int i_type, int i_mode )
p_tmp
=
p_this
->
p_parent
;
if
(
p_tmp
)
{
if
(
p_tmp
->
i_object_type
==
i_type
&&
vlc_internals
(
p_tmp
)
->
i_refcount
>
0
)
if
(
p_tmp
->
i_object_type
==
i_type
)
{
vlc_object_yield_locked
(
p_tmp
);
return
p_tmp
;
...
...
@@ -1314,8 +1313,7 @@ static vlc_object_t * FindObject( vlc_object_t *p_this, int i_type, int i_mode )
for
(
i
=
p_this
->
i_children
;
i
--
;
)
{
p_tmp
=
p_this
->
pp_children
[
i
];
if
(
p_tmp
->
i_object_type
==
i_type
&&
vlc_internals
(
p_tmp
)
->
i_refcount
>
0
)
if
(
p_tmp
->
i_object_type
==
i_type
)
{
vlc_object_yield_locked
(
p_tmp
);
return
p_tmp
;
...
...
@@ -1353,8 +1351,7 @@ static vlc_object_t * FindObjectName( vlc_object_t *p_this,
if
(
p_tmp
)
{
if
(
p_tmp
->
psz_object_name
&&
!
strcmp
(
p_tmp
->
psz_object_name
,
psz_name
)
&&
vlc_internals
(
p_tmp
)
->
i_refcount
>
0
)
&&
!
strcmp
(
p_tmp
->
psz_object_name
,
psz_name
)
)
{
vlc_object_yield_locked
(
p_tmp
);
return
p_tmp
;
...
...
@@ -1371,8 +1368,7 @@ static vlc_object_t * FindObjectName( vlc_object_t *p_this,
{
p_tmp
=
p_this
->
pp_children
[
i
];
if
(
p_tmp
->
psz_object_name
&&
!
strcmp
(
p_tmp
->
psz_object_name
,
psz_name
)
&&
vlc_internals
(
p_tmp
)
->
i_refcount
>
0
)
&&
!
strcmp
(
p_tmp
->
psz_object_name
,
psz_name
)
)
{
vlc_object_yield_locked
(
p_tmp
);
return
p_tmp
;
...
...
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