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
3c33fb8b
Commit
3c33fb8b
authored
Sep 20, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objects: vlc_object_yield() returns the yield()-ed object for convenience.
parent
cbeb3453
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/vlc_objects.h
include/vlc_objects.h
+1
-1
src/misc/objects.c
src/misc/objects.c
+2
-1
No files found.
include/vlc_objects.h
View file @
3c33fb8b
...
...
@@ -84,7 +84,7 @@ __attribute__((deprecated))
#endif
VLC_EXPORT
(
void
*
,
__vlc_object_find
,
(
vlc_object_t
*
,
int
,
int
)
);
VLC_EXPORT
(
vlc_object_t
*
,
vlc_object_find_name
,
(
vlc_object_t
*
,
const
char
*
,
int
)
);
VLC_EXPORT
(
void
,
__vlc_object_yield
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
*
,
__vlc_object_yield
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__vlc_object_release
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
vlc_list_t
*
,
__vlc_list_find
,
(
vlc_object_t
*
,
int
,
int
)
);
VLC_EXPORT
(
vlc_list_t
*
,
__vlc_list_children
,
(
vlc_object_t
*
)
);
...
...
src/misc/objects.c
View file @
3c33fb8b
...
...
@@ -613,7 +613,7 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this,
/**
* Increment an object reference counter.
*/
void
__vlc_object_yield
(
vlc_object_t
*
p_this
)
void
*
__vlc_object_yield
(
vlc_object_t
*
p_this
)
{
vlc_object_internals_t
*
internals
=
vlc_internals
(
p_this
);
...
...
@@ -623,6 +623,7 @@ void __vlc_object_yield( vlc_object_t *p_this )
/* Increment the counter */
internals
->
i_refcount
++
;
vlc_spin_unlock
(
&
internals
->
ref_spin
);
return
p_this
;
}
/*****************************************************************************
...
...
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