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
4dfa4e63
Commit
4dfa4e63
authored
Jan 29, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crasher in exception handling
Add some playlist functions
parent
2458a977
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
3 deletions
+52
-3
include/vlc/libvlc.h
include/vlc/libvlc.h
+33
-1
src/control/core.c
src/control/core.c
+2
-1
src/control/playlist.c
src/control/playlist.c
+17
-1
No files found.
include/vlc/libvlc.h
View file @
4dfa4e63
...
...
@@ -4,7 +4,7 @@
* Copyright (C) 1998-2005 the VideoLAN team
* $Id: vlc.h 13701 2005-12-12 17:58:56Z zorglub $
*
* Authors: Cl
�en
t Stenac <zorglub@videolan.org>
* Authors: Cl
ém
ent Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -130,6 +130,38 @@ void libvlc_destroy( libvlc_instance_t *);
void
libvlc_playlist_play
(
libvlc_instance_t
*
,
int
,
char
**
,
libvlc_exception_t
*
);
/**
* Stop playing
* \param p_instance the instance to stop
* \param p_exception an initialized exception
*/
void
libvlc_playlist_stop
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
/**
* Remove all playlist ites
* \param p_instance the instance
* \param p_exception an initialized exception
*/
void
libvlc_playlist_clear
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
/**
* Go to next playlist item
* \param p_instance the instance
* \param p_exception an initialized exception
*/
void
libvlc_playlist_next
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
/**
* Go to Previous playlist item
* \param p_instance the instance
* \param p_exception an initialized exception
*/
void
libvlc_playlist_prev
(
libvlc_instance_t
*
,
libvlc_exception_t
*
);
typedef
struct
libvlc_input_t
libvlc_input_t
;
///\todo document me
...
...
src/control/core.c
View file @
4dfa4e63
...
...
@@ -54,6 +54,7 @@ inline void libvlc_exception_raise( libvlc_exception_t *p_exception,
{
if
(
p_exception
==
NULL
)
return
;
p_exception
->
b_raised
=
1
;
if
(
psz_message
)
p_exception
->
psz_message
=
strdup
(
psz_message
);
}
...
...
src/control/playlist.c
View file @
4dfa4e63
...
...
@@ -4,7 +4,7 @@
* Copyright (C) 2005 the VideoLAN team
* $Id$
*
* Authors: Cl
�
ent Stenac <zorglub@videolan.org>
* Authors: Cl
m
ent Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -40,6 +40,22 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance,
playlist_Play
(
p_instance
->
p_playlist
);
}
void
libvlc_playlist_stop
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
if
(
playlist_Stop
(
p_instance
->
p_playlist
)
!=
VLC_SUCCESS
)
{
libvlc_exception_raise
(
p_exception
,
"Empty playlist"
);
}
}
void
libvlc_playlist_clear
(
libvlc_instance_t
*
p_instance
,
libvlc_exception_t
*
p_exception
)
{
playlist_Clear
(
p_instance
->
p_playlist
);
}
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