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
54e92316
Commit
54e92316
authored
Aug 17, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_playlist.h: Export playlist_DeleteInputInParent.
parent
82f15a01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
include/vlc_playlist.h
include/vlc_playlist.h
+1
-0
src/playlist/item.c
src/playlist/item.c
+12
-0
No files found.
include/vlc_playlist.h
View file @
54e92316
...
@@ -367,6 +367,7 @@ VLC_EXPORT( playlist_item_t *, __playlist_ItemNewFromInput, ( vlc_object_t *p_ob
...
@@ -367,6 +367,7 @@ VLC_EXPORT( playlist_item_t *, __playlist_ItemNewFromInput, ( vlc_object_t *p_ob
/*************************** Item deletion **************************/
/*************************** Item deletion **************************/
VLC_EXPORT
(
int
,
playlist_DeleteFromInput
,
(
playlist_t
*
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_DeleteFromInput
,
(
playlist_t
*
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_DeleteInputInParent
,
(
playlist_t
*
,
int
,
playlist_item_t
*
,
vlc_bool_t
)
);
/*************************** Item fields accessors **************************/
/*************************** Item fields accessors **************************/
VLC_EXPORT
(
int
,
playlist_ItemSetName
,
(
playlist_item_t
*
,
const
char
*
)
);
VLC_EXPORT
(
int
,
playlist_ItemSetName
,
(
playlist_item_t
*
,
const
char
*
)
);
...
...
src/playlist/item.c
View file @
54e92316
...
@@ -172,6 +172,18 @@ static int DeleteFromInput( playlist_t *p_playlist, int i_input_id,
...
@@ -172,6 +172,18 @@ static int DeleteFromInput( playlist_t *p_playlist, int i_input_id,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
/** Remove an input item when it appears from a root playlist item */
int
playlist_DeleteInputInParent
(
playlist_t
*
p_playlist
,
int
i_input_id
,
playlist_item_t
*
p_root
,
vlc_bool_t
b_locked
)
{
int
i_ret
;
if
(
!
b_locked
)
PL_LOCK
;
i_ret
=
DeleteFromInput
(
p_playlist
,
i_input_id
,
p_root
,
VLC_TRUE
);
if
(
!
b_locked
)
PL_UNLOCK
;
return
i_ret
;
}
/** Remove an input item from ONELEVEL and CATEGORY */
/** Remove an input item from ONELEVEL and CATEGORY */
int
playlist_DeleteFromInput
(
playlist_t
*
p_playlist
,
int
i_input_id
,
int
playlist_DeleteFromInput
(
playlist_t
*
p_playlist
,
int
i_input_id
,
vlc_bool_t
b_locked
)
vlc_bool_t
b_locked
)
...
...
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