Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fad28488
Commit
fad28488
authored
Nov 08, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more const
parent
53b1aaf7
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
20 deletions
+21
-20
include/vlc_input.h
include/vlc_input.h
+2
-2
include/vlc_playlist.h
include/vlc_playlist.h
+3
-3
include/vlc_symbols.h
include/vlc_symbols.h
+5
-5
src/input/input.c
src/input/input.c
+4
-3
src/input/input_internal.h
src/input/input_internal.h
+1
-1
src/input/item.c
src/input/item.c
+3
-3
src/playlist/item.c
src/playlist/item.c
+3
-3
No files found.
include/vlc_input.h
View file @
fad28488
...
@@ -188,8 +188,8 @@ VLC_EXPORT(int, input_ItemAddInfo, ( input_item_t *p_i, const char *psz_cat, con
...
@@ -188,8 +188,8 @@ VLC_EXPORT(int, input_ItemAddInfo, ( input_item_t *p_i, const char *psz_cat, con
#define input_ItemNew( a,b,c ) input_ItemNewExt( a, b, c, 0, NULL, -1 )
#define input_ItemNew( a,b,c ) input_ItemNewExt( a, b, c, 0, NULL, -1 )
#define input_ItemNewExt(a,b,c,d,e,f) __input_ItemNewExt( VLC_OBJECT(a),b,c,d,e,f)
#define input_ItemNewExt(a,b,c,d,e,f) __input_ItemNewExt( VLC_OBJECT(a),b,c,d,e,f)
VLC_EXPORT
(
input_item_t
*
,
__input_ItemNewExt
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
**
,
int
)
);
VLC_EXPORT
(
input_item_t
*
,
__input_ItemNewExt
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
)
);
VLC_EXPORT
(
input_item_t
*
,
input_ItemNewWithType
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
e
,
int
,
const
char
**
,
int
,
int
)
);
VLC_EXPORT
(
input_item_t
*
,
input_ItemNewWithType
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
e
,
int
,
const
char
*
const
*
,
int
,
int
)
);
VLC_EXPORT
(
input_item_t
*
,
input_ItemGetById
,
(
playlist_t
*
,
int
)
);
VLC_EXPORT
(
input_item_t
*
,
input_ItemGetById
,
(
playlist_t
*
,
int
)
);
...
...
include/vlc_playlist.h
View file @
fad28488
...
@@ -259,7 +259,7 @@ VLC_EXPORT( int, playlist_Export, ( playlist_t *, const char *, playlist_item_t
...
@@ -259,7 +259,7 @@ VLC_EXPORT( int, playlist_Export, ( playlist_t *, const char *, playlist_item_t
/*************************** Item creation **************************/
/*************************** Item creation **************************/
VLC_EXPORT
(
playlist_item_t
*
,
playlist_ItemNewWithType
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
**
,
int
,
int
)
);
VLC_EXPORT
(
playlist_item_t
*
,
playlist_ItemNewWithType
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
,
int
)
);
#define playlist_ItemNew( a , b, c ) __playlist_ItemNew(VLC_OBJECT(a) , b , c )
#define playlist_ItemNew( a , b, c ) __playlist_ItemNew(VLC_OBJECT(a) , b , c )
/** Create a new item, without adding it to the playlist
/** Create a new item, without adding it to the playlist
...
@@ -287,11 +287,11 @@ VLC_EXPORT( int, playlist_LockDelete, ( playlist_t *, int ) );
...
@@ -287,11 +287,11 @@ VLC_EXPORT( int, playlist_LockDelete, ( playlist_t *, int ) );
VLC_EXPORT
(
int
,
playlist_LockDeleteAllFromInput
,
(
playlist_t
*
,
int
)
);
VLC_EXPORT
(
int
,
playlist_LockDeleteAllFromInput
,
(
playlist_t
*
,
int
)
);
/*************************** Item fields accessors **************************/
/*************************** Item fields accessors **************************/
VLC_EXPORT
(
int
,
playlist_ItemSetName
,
(
playlist_item_t
*
,
char
*
)
);
VLC_EXPORT
(
int
,
playlist_ItemSetName
,
(
playlist_item_t
*
,
const
char
*
)
);
/******************** Item addition ********************/
/******************** Item addition ********************/
VLC_EXPORT
(
int
,
playlist_Add
,
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_Add
,
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_AddExt
,
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
mtime_t
,
const
char
**
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_AddExt
,
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
mtime_t
,
const
char
*
const
*
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_AddInput
,
(
playlist_t
*
,
input_item_t
*
,
int
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
int
,
playlist_AddInput
,
(
playlist_t
*
,
input_item_t
*
,
int
,
int
,
vlc_bool_t
)
);
VLC_EXPORT
(
playlist_item_t
*
,
playlist_NodeAddInput
,
(
playlist_t
*
,
input_item_t
*
,
playlist_item_t
*
,
int
,
int
)
);
VLC_EXPORT
(
playlist_item_t
*
,
playlist_NodeAddInput
,
(
playlist_t
*
,
input_item_t
*
,
playlist_item_t
*
,
int
,
int
)
);
VLC_EXPORT
(
void
,
playlist_NodeAddItem
,
(
playlist_t
*
,
playlist_item_t
*
,
playlist_item_t
*
,
int
,
int
)
);
VLC_EXPORT
(
void
,
playlist_NodeAddItem
,
(
playlist_t
*
,
playlist_item_t
*
,
playlist_item_t
*
,
int
,
int
)
);
...
...
include/vlc_symbols.h
View file @
fad28488
...
@@ -267,11 +267,11 @@ struct module_symbols_t
...
@@ -267,11 +267,11 @@ struct module_symbols_t
vlc_bool_t
(
*
playlist_IsServicesDiscoveryLoaded_inner
)
(
playlist_t
*
,
const
char
*
);
vlc_bool_t
(
*
playlist_IsServicesDiscoveryLoaded_inner
)
(
playlist_t
*
,
const
char
*
);
void
*
__playlist_ItemNew_deprecated
;
void
*
__playlist_ItemNew_deprecated
;
void
*
__playlist_ItemCopy_deprecated
;
void
*
__playlist_ItemCopy_deprecated
;
playlist_item_t
*
(
*
playlist_ItemNewWithType_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
**
,
int
,
int
);
playlist_item_t
*
(
*
playlist_ItemNewWithType_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
,
int
);
int
(
*
playlist_ItemDelete_inner
)
(
playlist_item_t
*
);
int
(
*
playlist_ItemDelete_inner
)
(
playlist_item_t
*
);
void
*
playlist_ItemAddParent_deprecated
;
void
*
playlist_ItemAddParent_deprecated
;
void
*
playlist_CopyParents_deprecated
;
void
*
playlist_CopyParents_deprecated
;
int
(
*
playlist_ItemSetName_inner
)
(
playlist_item_t
*
,
char
*
);
int
(
*
playlist_ItemSetName_inner
)
(
playlist_item_t
*
,
const
char
*
);
void
*
playlist_ItemSetDuration_deprecated
;
void
*
playlist_ItemSetDuration_deprecated
;
void
*
playlist_ViewInsert_deprecated
;
void
*
playlist_ViewInsert_deprecated
;
void
*
playlist_ViewDelete_deprecated
;
void
*
playlist_ViewDelete_deprecated
;
...
@@ -288,7 +288,7 @@ struct module_symbols_t
...
@@ -288,7 +288,7 @@ struct module_symbols_t
int
(
*
playlist_NodeDelete_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
vlc_bool_t
,
vlc_bool_t
);
int
(
*
playlist_NodeDelete_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
vlc_bool_t
,
vlc_bool_t
);
int
(
*
playlist_NodeEmpty_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
vlc_bool_t
);
int
(
*
playlist_NodeEmpty_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
vlc_bool_t
);
int
(
*
playlist_Add_inner
)
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
vlc_bool_t
);
int
(
*
playlist_Add_inner
)
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
vlc_bool_t
);
int
(
*
playlist_AddExt_inner
)
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
mtime_t
,
const
char
**
,
int
,
vlc_bool_t
);
int
(
*
playlist_AddExt_inner
)
(
playlist_t
*
,
const
char
*
,
const
char
*
,
int
,
int
,
mtime_t
,
const
char
*
const
*
,
int
,
vlc_bool_t
);
void
*
playlist_ItemAdd_deprecated
;
void
*
playlist_ItemAdd_deprecated
;
void
(
*
playlist_NodeAddItem_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
playlist_item_t
*
,
int
,
int
);
void
(
*
playlist_NodeAddItem_inner
)
(
playlist_t
*
,
playlist_item_t
*
,
playlist_item_t
*
,
int
,
int
);
void
*
playlist_Delete_deprecated
;
void
*
playlist_Delete_deprecated
;
...
@@ -492,8 +492,8 @@ struct module_symbols_t
...
@@ -492,8 +492,8 @@ struct module_symbols_t
char
*
(
*
encode_URI_component_inner
)
(
const
char
*
psz
);
char
*
(
*
encode_URI_component_inner
)
(
const
char
*
psz
);
size_t
(
*
vlc_strlcpy_inner
)
(
char
*
,
const
char
*
,
size_t
);
size_t
(
*
vlc_strlcpy_inner
)
(
char
*
,
const
char
*
,
size_t
);
void
*
playlist_ItemNewFromInput_deprecated
;
void
*
playlist_ItemNewFromInput_deprecated
;
input_item_t
*
(
*
__input_ItemNewExt_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
**
,
int
);
input_item_t
*
(
*
__input_ItemNewExt_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
const
*
,
int
);
input_item_t
*
(
*
input_ItemNewWithType_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
e
,
int
,
const
char
**
,
int
,
int
);
input_item_t
*
(
*
input_ItemNewWithType_inner
)
(
vlc_object_t
*
,
const
char
*
,
const
char
*
e
,
int
,
const
char
*
const
*
,
int
,
int
);
playlist_item_t
*
(
*
playlist_NodeAddInput_inner
)
(
playlist_t
*
,
input_item_t
*
,
playlist_item_t
*
,
int
,
int
);
playlist_item_t
*
(
*
playlist_NodeAddInput_inner
)
(
playlist_t
*
,
input_item_t
*
,
playlist_item_t
*
,
int
,
int
);
void
*
playlist_PlaylistAdd_deprecated
;
void
*
playlist_PlaylistAdd_deprecated
;
void
*
playlist_PlaylistAddExt_deprecated
;
void
*
playlist_PlaylistAddExt_deprecated
;
...
...
src/input/input.c
View file @
fad28488
...
@@ -74,7 +74,7 @@ static void MRLSections( input_thread_t *, char *, int *, int *, int *, int *);
...
@@ -74,7 +74,7 @@ static void MRLSections( input_thread_t *, char *, int *, int *, int *, int *);
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
);
static
input_source_t
*
InputSourceNew
(
input_thread_t
*
);
static
int
InputSourceInit
(
input_thread_t
*
,
input_source_t
*
,
static
int
InputSourceInit
(
input_thread_t
*
,
input_source_t
*
,
char
*
,
char
*
psz_forced_demux
);
char
*
,
c
onst
c
har
*
psz_forced_demux
);
static
void
InputSourceClean
(
input_thread_t
*
,
input_source_t
*
);
static
void
InputSourceClean
(
input_thread_t
*
,
input_source_t
*
);
static
void
SlaveDemux
(
input_thread_t
*
p_input
);
static
void
SlaveDemux
(
input_thread_t
*
p_input
);
...
@@ -1922,7 +1922,7 @@ static input_source_t *InputSourceNew( input_thread_t *p_input )
...
@@ -1922,7 +1922,7 @@ static input_source_t *InputSourceNew( input_thread_t *p_input )
*****************************************************************************/
*****************************************************************************/
static
int
InputSourceInit
(
input_thread_t
*
p_input
,
static
int
InputSourceInit
(
input_thread_t
*
p_input
,
input_source_t
*
in
,
char
*
psz_mrl
,
input_source_t
*
in
,
char
*
psz_mrl
,
char
*
psz_forced_demux
)
c
onst
c
har
*
psz_forced_demux
)
{
{
char
*
psz_dup
=
strdup
(
psz_mrl
);
char
*
psz_dup
=
strdup
(
psz_mrl
);
char
*
psz_access
;
char
*
psz_access
;
...
@@ -2325,7 +2325,8 @@ static void InputMetaUser( input_thread_t *p_input )
...
@@ -2325,7 +2325,8 @@ static void InputMetaUser( input_thread_t *p_input )
* Media Resource Locator.
* Media Resource Locator.
*****************************************************************************/
*****************************************************************************/
void
MRLSplit
(
vlc_object_t
*
p_input
,
char
*
psz_dup
,
void
MRLSplit
(
vlc_object_t
*
p_input
,
char
*
psz_dup
,
char
**
ppsz_access
,
char
**
ppsz_demux
,
char
**
ppsz_path
)
const
char
**
ppsz_access
,
const
char
**
ppsz_demux
,
const
char
**
ppsz_path
)
{
{
char
*
psz_access
=
NULL
;
char
*
psz_access
=
NULL
;
char
*
psz_demux
=
NULL
;
char
*
psz_demux
=
NULL
;
...
...
src/input/input_internal.h
View file @
fad28488
...
@@ -154,7 +154,7 @@ mtime_t input_ClockGetTS( input_thread_t *, input_clock_t *, mtime_t );
...
@@ -154,7 +154,7 @@ mtime_t input_ClockGetTS( input_thread_t *, input_clock_t *, mtime_t );
char
**
subtitles_Detect
(
input_thread_t
*
,
char
*
path
,
char
*
fname
);
char
**
subtitles_Detect
(
input_thread_t
*
,
char
*
path
,
char
*
fname
);
int
subtitles_Filter
(
const
char
*
);
int
subtitles_Filter
(
const
char
*
);
void
MRLSplit
(
vlc_object_t
*
,
char
*
,
c
har
**
,
char
**
,
char
**
);
void
MRLSplit
(
vlc_object_t
*
,
char
*
,
c
onst
char
**
,
const
char
**
,
const
char
**
);
static
inline
void
input_ChangeState
(
input_thread_t
*
p_input
,
int
state
)
static
inline
void
input_ChangeState
(
input_thread_t
*
p_input
,
int
state
)
{
{
...
...
src/input/item.c
View file @
fad28488
...
@@ -190,7 +190,7 @@ input_item_t *input_ItemGetById( playlist_t *p_playlist, int i_id )
...
@@ -190,7 +190,7 @@ input_item_t *input_ItemGetById( playlist_t *p_playlist, int i_id )
input_item_t
*
__input_ItemNewExt
(
vlc_object_t
*
p_obj
,
const
char
*
psz_uri
,
input_item_t
*
__input_ItemNewExt
(
vlc_object_t
*
p_obj
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_options
,
const
char
*
psz_name
,
int
i_options
,
const
char
**
ppsz_options
,
int
i_duration
)
const
char
*
const
*
ppsz_options
,
int
i_duration
)
{
{
return
input_ItemNewWithType
(
p_obj
,
psz_uri
,
psz_name
,
return
input_ItemNewWithType
(
p_obj
,
psz_uri
,
psz_name
,
i_options
,
ppsz_options
,
i_options
,
ppsz_options
,
...
@@ -200,7 +200,7 @@ input_item_t *__input_ItemNewExt( vlc_object_t *p_obj, const char *psz_uri,
...
@@ -200,7 +200,7 @@ input_item_t *__input_ItemNewExt( vlc_object_t *p_obj, const char *psz_uri,
input_item_t
*
input_ItemNewWithType
(
vlc_object_t
*
p_obj
,
const
char
*
psz_uri
,
input_item_t
*
input_ItemNewWithType
(
vlc_object_t
*
p_obj
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_options
,
const
char
*
psz_name
,
int
i_options
,
const
char
**
ppsz_options
,
int
i_duration
,
const
char
*
const
*
ppsz_options
,
int
i_duration
,
int
i_type
)
int
i_type
)
{
{
playlist_t
*
p_playlist
=
pl_Yield
(
p_obj
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_obj
);
...
@@ -233,7 +233,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
...
@@ -233,7 +233,7 @@ input_item_t *input_ItemNewWithType( vlc_object_t *p_obj, const char *psz_uri,
else
if
(
p_input
->
i_type
==
ITEM_TYPE_AFILE
else
if
(
p_input
->
i_type
==
ITEM_TYPE_AFILE
||
p_input
->
i_type
==
ITEM_TYPE_VFILE
)
||
p_input
->
i_type
==
ITEM_TYPE_VFILE
)
{
{
char
*
psz_filename
=
strrchr
(
p_input
->
psz_uri
,
DIR_SEP_CHAR
);
c
onst
c
har
*
psz_filename
=
strrchr
(
p_input
->
psz_uri
,
DIR_SEP_CHAR
);
if
(
psz_filename
&&
*
psz_filename
==
DIR_SEP_CHAR
)
if
(
psz_filename
&&
*
psz_filename
==
DIR_SEP_CHAR
)
psz_filename
++
;
psz_filename
++
;
p_input
->
psz_name
=
strdup
(
psz_filename
&&
*
psz_filename
p_input
->
psz_name
=
strdup
(
psz_filename
&&
*
psz_filename
...
...
src/playlist/item.c
View file @
fad28488
...
@@ -42,7 +42,7 @@ playlist_item_t * playlist_ItemNewWithType( vlc_object_t *p_obj,
...
@@ -42,7 +42,7 @@ playlist_item_t * playlist_ItemNewWithType( vlc_object_t *p_obj,
const
char
*
psz_uri
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
const
char
*
psz_name
,
int
i_options
,
int
i_options
,
const
char
**
ppsz_options
,
const
char
*
const
*
ppsz_options
,
int
i_duration
,
int
i_type
)
int
i_duration
,
int
i_type
)
{
{
input_item_t
*
p_input
;
input_item_t
*
p_input
;
...
@@ -204,7 +204,7 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
...
@@ -204,7 +204,7 @@ int playlist_Add( playlist_t *p_playlist, const char *psz_uri,
*/
*/
int
playlist_AddExt
(
playlist_t
*
p_playlist
,
const
char
*
psz_uri
,
int
playlist_AddExt
(
playlist_t
*
p_playlist
,
const
char
*
psz_uri
,
const
char
*
psz_name
,
int
i_mode
,
int
i_pos
,
const
char
*
psz_name
,
int
i_mode
,
int
i_pos
,
mtime_t
i_duration
,
const
char
**
ppsz_options
,
mtime_t
i_duration
,
const
char
*
const
*
ppsz_options
,
int
i_options
,
vlc_bool_t
b_playlist
)
int
i_options
,
vlc_bool_t
b_playlist
)
{
{
input_item_t
*
p_input
=
input_ItemNewExt
(
p_playlist
,
psz_uri
,
psz_name
,
input_item_t
*
p_input
=
input_ItemNewExt
(
p_playlist
,
psz_uri
,
psz_name
,
...
@@ -560,7 +560,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
...
@@ -560,7 +560,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
*****************************************************************************/
*****************************************************************************/
/** Set the name of a playlist item */
/** Set the name of a playlist item */
int
playlist_ItemSetName
(
playlist_item_t
*
p_item
,
char
*
psz_name
)
int
playlist_ItemSetName
(
playlist_item_t
*
p_item
,
c
onst
c
har
*
psz_name
)
{
{
if
(
psz_name
&&
p_item
)
if
(
psz_name
&&
p_item
)
{
{
...
...
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