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
429820a6
Commit
429820a6
authored
Sep 12, 2008
by
Sebastien Escudier
Committed by
Antoine Cellerier
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const to char * in vlm
Signed-off-by:
Antoine Cellerier
<
dionoea@videolan.org
>
parent
cdc8bcd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
76 deletions
+126
-76
include/vlc/libvlc_vlm.h
include/vlc/libvlc_vlm.h
+64
-38
src/control/vlm.c
src/control/vlm.c
+62
-38
No files found.
include/vlc/libvlc_vlm.h
View file @
429820a6
...
...
@@ -65,8 +65,12 @@ VLC_PUBLIC_API void libvlc_vlm_release( libvlc_instance_t *, libvlc_exception_t
* \param b_loop Should this broadcast be played in loop ?
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_add_broadcast
(
libvlc_instance_t
*
,
char
*
,
char
*
,
char
*
,
int
,
char
**
,
int
,
int
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_add_broadcast
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
,
int
,
libvlc_exception_t
*
);
/**
* Add a vod, with one input.
...
...
@@ -80,8 +84,11 @@ VLC_PUBLIC_API void libvlc_vlm_add_broadcast( libvlc_instance_t *, char *, char
* \param psz_mux the muxer of the vod media
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_add_vod
(
libvlc_instance_t
*
,
char
*
,
char
*
,
int
,
char
**
,
int
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_add_vod
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Delete a media (VOD or broadcast).
...
...
@@ -90,7 +97,9 @@ VLC_PUBLIC_API void libvlc_vlm_add_vod( libvlc_instance_t *, char *, char *, int
* \param psz_name the media to delete
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_del_media
(
libvlc_instance_t
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_del_media
(
libvlc_instance_t
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Enable or disable a media (VOD or broadcast).
...
...
@@ -100,8 +109,8 @@ VLC_PUBLIC_API void libvlc_vlm_del_media( libvlc_instance_t *, char *, libvlc_ex
* \param b_enabled the new status
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_set_enabled
(
libvlc_instance_t
*
,
c
har
*
,
int
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_set_enabled
(
libvlc_instance_t
*
,
c
onst
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Set the output for a media.
...
...
@@ -111,8 +120,9 @@ VLC_PUBLIC_API void libvlc_vlm_set_enabled( libvlc_instance_t *, char *, int,
* \param psz_output the output MRL (the parameter to the "sout" variable)
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_set_output
(
libvlc_instance_t
*
,
char
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_set_output
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Set a media's input MRL. This will delete all existing inputs and
...
...
@@ -123,8 +133,9 @@ VLC_PUBLIC_API void libvlc_vlm_set_output( libvlc_instance_t *, char *, char*,
* \param psz_input the input MRL
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_set_input
(
libvlc_instance_t
*
,
char
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_set_input
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Add a media's input MRL. This will add the specified one.
...
...
@@ -134,8 +145,9 @@ VLC_PUBLIC_API void libvlc_vlm_set_input( libvlc_instance_t *, char *, char*,
* \param psz_input the input MRL
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_add_input
(
libvlc_instance_t
*
,
char
*
,
char
*
,
libvlc_exception_t
*
p_exception
);
VLC_PUBLIC_API
void
libvlc_vlm_add_input
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Set a media's loop status.
*
...
...
@@ -144,8 +156,8 @@ VLC_PUBLIC_API void libvlc_vlm_add_input( libvlc_instance_t *, char *, char *,
* \param b_loop the new status
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_set_loop
(
libvlc_instance_t
*
,
c
har
*
,
int
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_set_loop
(
libvlc_instance_t
*
,
c
onst
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Set a media's vod muxer.
...
...
@@ -155,8 +167,8 @@ VLC_PUBLIC_API void libvlc_vlm_set_loop( libvlc_instance_t *, char *, int,
* \param psz_mux the new muxer
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_set_mux
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
c
har
*
psz_mux
,
libvlc_exception_t
*
p_exception
);
VLC_PUBLIC_API
void
libvlc_vlm_set_mux
(
libvlc_instance_t
*
,
const
char
*
,
c
onst
char
*
,
libvlc_exception_t
*
);
/**
* Edit the parameters of a media. This will delete all existing inputs and
...
...
@@ -172,8 +184,11 @@ VLC_PUBLIC_API void libvlc_vlm_set_mux( libvlc_instance_t *p_instance, char *psz
* \param b_loop Should this broadcast be played in loop ?
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_change_media
(
libvlc_instance_t
*
,
char
*
,
char
*
,
char
*
,
int
,
char
**
,
int
,
int
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_change_media
(
libvlc_instance_t
*
,
const
char
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
,
int
,
libvlc_exception_t
*
);
/**
* Play the named broadcast.
...
...
@@ -182,7 +197,8 @@ VLC_PUBLIC_API void libvlc_vlm_change_media( libvlc_instance_t *, char *, char *
* \param psz_name the name of the broadcast
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_play_media
(
libvlc_instance_t
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_play_media
(
libvlc_instance_t
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Stop the named broadcast.
...
...
@@ -191,7 +207,8 @@ VLC_PUBLIC_API void libvlc_vlm_play_media ( libvlc_instance_t *, char *, libvlc_
* \param psz_name the name of the broadcast
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_stop_media
(
libvlc_instance_t
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_stop_media
(
libvlc_instance_t
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Pause the named broadcast.
...
...
@@ -200,7 +217,8 @@ VLC_PUBLIC_API void libvlc_vlm_stop_media ( libvlc_instance_t *, char *, libvlc_
* \param psz_name the name of the broadcast
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_pause_media
(
libvlc_instance_t
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
void
libvlc_vlm_pause_media
(
libvlc_instance_t
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Seek in the named broadcast.
...
...
@@ -210,7 +228,7 @@ VLC_PUBLIC_API void libvlc_vlm_pause_media( libvlc_instance_t *, char *, libvlc_
* \param f_percentage the percentage to seek to
* \param p_e an initialized exception pointer
*/
VLC_PUBLIC_API
void
libvlc_vlm_seek_media
(
libvlc_instance_t
*
,
char
*
,
VLC_PUBLIC_API
void
libvlc_vlm_seek_media
(
libvlc_instance_t
*
,
c
onst
c
har
*
,
float
,
libvlc_exception_t
*
);
/**
...
...
@@ -221,7 +239,8 @@ VLC_PUBLIC_API void libvlc_vlm_seek_media( libvlc_instance_t *, char *,
* \param p_e an initialized exception pointer
* \return string with information about named media
*/
VLC_PUBLIC_API
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
,
char
*
,
libvlc_exception_t
*
);
VLC_PUBLIC_API
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
,
const
char
*
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance position by name or instance id
...
...
@@ -232,8 +251,9 @@ VLC_PUBLIC_API char* libvlc_vlm_show_media( libvlc_instance_t *, char *, libvlc_
* \param p_e an initialized exception pointer
* \return position as float
*/
VLC_PUBLIC_API
float
libvlc_vlm_get_media_instance_position
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
float
libvlc_vlm_get_media_instance_position
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance time by name or instance id
...
...
@@ -244,8 +264,9 @@ VLC_PUBLIC_API float libvlc_vlm_get_media_instance_position( libvlc_instance_t *
* \param p_e an initialized exception pointer
* \return time as integer
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_time
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_time
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance length by name or instance id
...
...
@@ -256,8 +277,9 @@ VLC_PUBLIC_API int libvlc_vlm_get_media_instance_time( libvlc_instance_t *p_inst
* \param p_e an initialized exception pointer
* \return length of media item
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_length
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_length
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance playback rate by name or instance id
...
...
@@ -268,8 +290,9 @@ VLC_PUBLIC_API int libvlc_vlm_get_media_instance_length( libvlc_instance_t *p_in
* \param p_e an initialized exception pointer
* \return playback rate
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_rate
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_rate
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance title number by name or instance id
...
...
@@ -280,8 +303,9 @@ VLC_PUBLIC_API int libvlc_vlm_get_media_instance_rate( libvlc_instance_t *p_inst
* \param p_e an initialized exception pointer
* \return title as number
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_title
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_title
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Get vlm_media instance chapter number by name or instance id
...
...
@@ -292,8 +316,9 @@ VLC_PUBLIC_API int libvlc_vlm_get_media_instance_title( libvlc_instance_t *p_ins
* \param p_e an initialized exception pointer
* \return chapter as number
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_chapter
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_chapter
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/**
* Is libvlc instance seekable ?
...
...
@@ -304,8 +329,9 @@ VLC_PUBLIC_API int libvlc_vlm_get_media_instance_chapter( libvlc_instance_t *p_i
* \param p_e an initialized exception pointer
* \return 1 if seekable, 0 if not
*/
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_seekable
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_e
);
VLC_PUBLIC_API
int
libvlc_vlm_get_media_instance_seekable
(
libvlc_instance_t
*
,
const
char
*
,
int
,
libvlc_exception_t
*
);
/** @} */
...
...
src/control/vlm.c
View file @
429820a6
...
...
@@ -98,7 +98,8 @@ char* libvlc_vlm_show_media( libvlc_instance_t *p_instance, char *psz_name,
}
#else
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
libvlc_vlm_show_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -140,7 +141,8 @@ static int libvlc_vlm_init( libvlc_instance_t *p_instance,
#define VLM(p) VLM_RET(p,)
static
vlm_media_instance_t
*
libvlc_vlm_get_media_instance
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_minstance_idx
,
const
char
*
psz_name
,
int
i_minstance_idx
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -189,9 +191,11 @@ void libvlc_vlm_release( libvlc_instance_t *p_instance, libvlc_exception_t *p_ex
#endif
}
void
libvlc_vlm_add_broadcast
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_input
,
char
*
psz_output
,
int
i_options
,
char
**
ppsz_options
,
void
libvlc_vlm_add_broadcast
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
const
char
*
psz_input
,
const
char
*
psz_output
,
int
i_options
,
const
char
*
const
*
ppsz_options
,
int
b_enabled
,
int
b_loop
,
libvlc_exception_t
*
p_exception
)
{
...
...
@@ -224,10 +228,10 @@ void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_add_vod
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_input
,
int
i_options
,
c
har
*
*
ppsz_options
,
int
b_enabled
,
char
*
psz_mux
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_add_vod
(
libvlc_instance_t
*
p_instance
,
c
onst
c
har
*
psz_name
,
c
onst
c
har
*
psz_input
,
int
i_options
,
c
onst
char
*
const
*
ppsz_options
,
int
b_enabled
,
c
onst
c
har
*
psz_mux
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
vlm_t
*
p_vlm
;
...
...
@@ -256,7 +260,7 @@ void libvlc_vlm_add_vod( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_del_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
void
libvlc_vlm_del_media
(
libvlc_instance_t
*
p_instance
,
c
onst
c
har
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -300,8 +304,9 @@ void libvlc_vlm_del_media( libvlc_instance_t *p_instance, char *psz_name,
libvlc_exception_raise( p_exception, psz_error, psz_name );\
} while(0)
void
libvlc_vlm_set_enabled
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
b_enabled
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_set_enabled
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
int
b_enabled
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { p_media->b_enabled = b_enabled; }
...
...
@@ -313,7 +318,7 @@ void libvlc_vlm_set_enabled( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_set_loop
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
void
libvlc_vlm_set_loop
(
libvlc_instance_t
*
p_instance
,
c
onst
c
har
*
psz_name
,
int
b_loop
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -326,8 +331,8 @@ void libvlc_vlm_set_loop( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_set_mux
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_mux
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_set_mux
(
libvlc_instance_t
*
p_instance
,
c
onst
c
har
*
psz_name
,
c
onst
c
har
*
psz_mux
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { if( p_media->b_vod ) { \
...
...
@@ -342,8 +347,9 @@ void libvlc_vlm_set_mux( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_set_output
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_output
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_set_output
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
const
char
*
psz_output
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { free( p_media->psz_output ); \
...
...
@@ -356,8 +362,9 @@ void libvlc_vlm_set_output( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_set_input
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_input
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_set_input
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
const
char
*
psz_input
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { while( p_media->i_input > 0 ) \
...
...
@@ -371,8 +378,9 @@ void libvlc_vlm_set_input( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_add_input
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_input
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_add_input
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
const
char
*
psz_input
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { TAB_APPEND( p_media->i_input, p_media->ppsz_input, strdup(psz_input) ); }
...
...
@@ -384,10 +392,11 @@ void libvlc_vlm_add_input( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_change_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
char
*
psz_input
,
char
*
psz_output
,
int
i_options
,
char
**
ppsz_options
,
int
b_enabled
,
int
b_loop
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_change_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
const
char
*
psz_input
,
const
char
*
psz_output
,
int
i_options
,
const
char
*
const
*
ppsz_options
,
int
b_enabled
,
int
b_loop
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
#define VLM_CHANGE_CODE { int n; \
...
...
@@ -412,7 +421,8 @@ void libvlc_vlm_change_media( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_play_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
void
libvlc_vlm_play_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -432,7 +442,8 @@ void libvlc_vlm_play_media( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_stop_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
void
libvlc_vlm_stop_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
...
...
@@ -452,8 +463,9 @@ void libvlc_vlm_stop_media( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_pause_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_pause_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
vlm_t
*
p_vlm
;
...
...
@@ -472,8 +484,9 @@ void libvlc_vlm_pause_media( libvlc_instance_t *p_instance, char *psz_name,
#endif
}
void
libvlc_vlm_seek_media
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
float
f_percentage
,
libvlc_exception_t
*
p_exception
)
void
libvlc_vlm_seek_media
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
float
f_percentage
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
vlm_t
*
p_vlm
;
...
...
@@ -493,7 +506,9 @@ void libvlc_vlm_seek_media( libvlc_instance_t *p_instance, char *psz_name,
}
float
libvlc_vlm_get_media_instance_position
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
float
result
=
-
1
;
...
...
@@ -514,7 +529,8 @@ float libvlc_vlm_get_media_instance_position( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_time
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
int
result
=
-
1
;
...
...
@@ -535,7 +551,9 @@ int libvlc_vlm_get_media_instance_time( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_length
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
int
result
=
-
1
;
...
...
@@ -556,7 +574,8 @@ int libvlc_vlm_get_media_instance_length( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_rate
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
int
result
=
-
1
;
...
...
@@ -577,7 +596,8 @@ int libvlc_vlm_get_media_instance_rate( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_title
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
int
result
=
0
;
...
...
@@ -597,7 +617,9 @@ int libvlc_vlm_get_media_instance_title( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_chapter
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
int
result
=
0
;
...
...
@@ -617,7 +639,9 @@ int libvlc_vlm_get_media_instance_chapter( libvlc_instance_t *p_instance,
}
int
libvlc_vlm_get_media_instance_seekable
(
libvlc_instance_t
*
p_instance
,
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
const
char
*
psz_name
,
int
i_instance
,
libvlc_exception_t
*
p_exception
)
{
#ifdef ENABLE_VLM
bool
result
=
0
;
...
...
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