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
1524a416
Commit
1524a416
authored
Oct 15, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_list_view.c: Implement unimplemented retain/release function.
parent
e0b273dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
include/vlc/libvlc.h
include/vlc/libvlc.h
+3
-0
src/control/media_list_view.c
src/control/media_list_view.c
+12
-1
No files found.
include/vlc/libvlc.h
View file @
1524a416
...
...
@@ -512,6 +512,9 @@ VLC_PUBLIC_API libvlc_event_manager_t *
VLC_PUBLIC_API
void
libvlc_media_list_view_retain
(
libvlc_media_list_view_t
*
p_mlv
);
VLC_PUBLIC_API
void
libvlc_media_list_view_release
(
libvlc_media_list_view_t
*
p_mlv
);
VLC_PUBLIC_API
int
libvlc_media_list_view_count
(
libvlc_media_list_view_t
*
p_mlv
,
libvlc_exception_t
*
p_e
);
...
...
src/control/media_list_view.c
View file @
1524a416
...
...
@@ -124,7 +124,7 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
p_mlv
->
pf_item_at_index
=
pf_item_at_index
;
p_mlv
->
pf_release
=
pf_release
;
p_mlv
->
this_view_data
=
this_view_data
;
p_mlv
->
p_
this_view_data
=
this_view_data
;
vlc_mutex_init
(
p_mlv
->
p_libvlc_instance
->
p_libvlc_int
,
&
p_mlv
->
object_lock
);
p_mlv
->
i_refcount
=
1
;
...
...
@@ -137,6 +137,17 @@ libvlc_media_list_view_new( libvlc_media_list_t * p_mlist,
* Public libvlc functions
*/
/**************************************************************************
* libvlc_media_list_view_retain (Public)
**************************************************************************/
void
libvlc_media_list_view_release
(
libvlc_media_list_view_t
*
p_mlv
)
{
vlc_mutex_lock
(
&
p_mlv
->
object_lock
);
p_mlv
->
i_refcount
++
;
vlc_mutex_unlock
(
&
p_mlv
->
object_lock
);
}
/**************************************************************************
* libvlc_media_list_view_release (Public)
**************************************************************************/
...
...
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