Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
711b5da2
Commit
711b5da2
authored
Feb 12, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some playlist api functions
Fix a bug in exceptions handling
parent
6d4e2137
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
src/control/core.c
src/control/core.c
+1
-0
src/control/playlist.c
src/control/playlist.c
+38
-0
No files found.
src/control/core.c
View file @
711b5da2
...
...
@@ -39,6 +39,7 @@ void libvlc_exception_clear( libvlc_exception_t *p_exception )
{
if
(
p_exception
->
psz_message
)
free
(
p_exception
->
psz_message
);
p_exception
->
psz_message
=
NULL
;
p_exception
->
b_raised
=
0
;
}
...
...
src/control/playlist.c
View file @
711b5da2
...
...
@@ -90,6 +90,24 @@ void libvlc_playlist_clear( libvlc_instance_t *p_instance,
playlist_Clear
(
p_instance
->
p_playlist
);
}
void
libvlc_playlist_next
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
if
(
playlist_Next
(
p_instance
->
p_playlist
)
!=
VLC_SUCCESS
)
{
libvlc_exception_raise
(
p_exception
,
"Empty playlist"
);
}
}
void
libvlc_playlist_prev
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
if
(
playlist_Prev
(
p_instance
->
p_playlist
)
!=
VLC_SUCCESS
)
{
libvlc_exception_raise
(
p_exception
,
"Empty playlist"
);
}
}
int
libvlc_playlist_add
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
...
...
@@ -107,7 +125,27 @@ int libvlc_playlist_add_extended( libvlc_instance_t *p_instance,
i_options
);
}
int
libvlc_playlist_isplaying
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
if
(
!
p_instance
->
p_playlist
)
{
libvlc_exception_raise
(
p_exception
,
"No playlist"
);
return
0
;
}
return
playlist_IsPlaying
(
p_instance
->
p_playlist
);
}
int
libvlc_playlist_items_count
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
if
(
!
p_instance
->
p_playlist
)
{
libvlc_exception_raise
(
p_exception
,
"No playlist"
);
return
0
;
}
return
p_instance
->
p_playlist
->
i_size
;
}
libvlc_input_t
*
libvlc_playlist_get_input
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
...
...
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