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
1c8c9422
Commit
1c8c9422
authored
May 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn when pl_Yield() is not used
parent
14be786c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/misc/objects.c
src/misc/objects.c
+12
-8
No files found.
src/misc/objects.c
View file @
1c8c9422
...
@@ -710,17 +710,21 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
...
@@ -710,17 +710,21 @@ void * __vlc_object_find( vlc_object_t *p_this, int i_type, int i_mode )
return
p_this
;
return
p_this
;
}
}
vlc_mutex_lock
(
&
structure_lock
);
/* Otherwise, recursively look for the object */
/* Otherwise, recursively look for the object */
if
(
(
i_mode
&
0x000f
)
==
FIND_ANYWHERE
)
if
((
i_mode
&
0x000f
)
==
FIND_ANYWHERE
)
p_found
=
FindObject
(
p_this
->
p_libvlc
,
i_type
,
{
(
i_mode
&
~
0x000f
)
|
FIND_CHILD
);
#ifndef NDEBUG
else
if
(
i_type
==
VLC_OBJECT_PLAYLIST
)
p_found
=
FindObject
(
p_this
,
i_type
,
i_mode
);
msg_Warn
(
p_this
,
"using vlc_object_find(VLC_OBJECT_PLAYLIST) "
"instead of pl_Yield()"
);
#endif
return
vlc_object_find
(
p_this
->
p_libvlc
,
i_type
,
(
i_mode
&
~
0x000f
)
|
FIND_CHILD
);
}
vlc_mutex_lock
(
&
structure_lock
);
p_found
=
FindObject
(
p_this
,
i_type
,
i_mode
);
vlc_mutex_unlock
(
&
structure_lock
);
vlc_mutex_unlock
(
&
structure_lock
);
return
p_found
;
return
p_found
;
}
}
...
...
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