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
2684aa49
Commit
2684aa49
authored
Mar 31, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Remove input_ItemClean and input_ItemInit from public land.
parent
459f98e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
78 deletions
+82
-78
include/vlc_input.h
include/vlc_input.h
+0
-51
src/input/input_internal.h
src/input/input_internal.h
+0
-27
src/input/item.c
src/input/item.c
+82
-0
No files found.
include/vlc_input.h
View file @
2684aa49
...
...
@@ -162,57 +162,6 @@ int input_ItemAddOption (input_item_t *item, const char *str)
return
input_ItemAddOpt
(
item
,
str
,
VLC_INPUT_OPTION_TRUSTED
);
}
static
inline
void
input_ItemClean
(
input_item_t
*
p_i
)
{
int
i
;
vlc_event_manager_fini
(
&
p_i
->
event_manager
);
free
(
p_i
->
psz_name
);
free
(
p_i
->
psz_uri
);
if
(
p_i
->
p_stats
)
{
vlc_mutex_destroy
(
&
p_i
->
p_stats
->
lock
);
free
(
p_i
->
p_stats
);
}
if
(
p_i
->
p_meta
)
vlc_meta_Delete
(
p_i
->
p_meta
);
for
(
i
=
0
;
i
<
p_i
->
i_options
;
i
++
)
free
(
p_i
->
ppsz_options
[
i
]
);
TAB_CLEAN
(
p_i
->
i_options
,
p_i
->
ppsz_options
);
free
(
p_i
->
optflagv
);
for
(
i
=
0
;
i
<
p_i
->
i_es
;
i
++
)
{
es_format_Clean
(
p_i
->
es
[
i
]
);
free
(
p_i
->
es
[
i
]
);
}
TAB_CLEAN
(
p_i
->
i_es
,
p_i
->
es
);
for
(
i
=
0
;
i
<
p_i
->
i_categories
;
i
++
)
{
info_category_t
*
p_category
=
p_i
->
pp_categories
[
i
];
int
j
;
for
(
j
=
0
;
j
<
p_category
->
i_infos
;
j
++
)
{
struct
info_t
*
p_info
=
p_category
->
pp_infos
[
j
];
free
(
p_info
->
psz_name
);
free
(
p_info
->
psz_value
);
free
(
p_info
);
}
TAB_CLEAN
(
p_category
->
i_infos
,
p_category
->
pp_infos
);
free
(
p_category
->
psz_name
);
free
(
p_category
);
}
TAB_CLEAN
(
p_i
->
i_categories
,
p_i
->
pp_categories
);
vlc_mutex_destroy
(
&
p_i
->
lock
);
}
VLC_EXPORT
(
void
,
input_item_SetMeta
,
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
,
const
char
*
psz_val
));
...
...
src/input/input_internal.h
View file @
2684aa49
...
...
@@ -220,33 +220,6 @@ static inline void input_ControlPush( input_thread_t *p_input,
/** Stuff moved out of vlc_input.h -- FIXME: should probably not be inline
* anyway. */
static
inline
void
input_ItemInit
(
vlc_object_t
*
p_o
,
input_item_t
*
p_i
)
{
memset
(
p_i
,
0
,
sizeof
(
input_item_t
)
);
p_i
->
psz_name
=
NULL
;
p_i
->
psz_uri
=
NULL
;
TAB_INIT
(
p_i
->
i_es
,
p_i
->
es
);
TAB_INIT
(
p_i
->
i_options
,
p_i
->
ppsz_options
);
p_i
->
optflagv
=
NULL
,
p_i
->
optflagc
=
0
;
TAB_INIT
(
p_i
->
i_categories
,
p_i
->
pp_categories
);
p_i
->
i_type
=
ITEM_TYPE_UNKNOWN
;
p_i
->
b_fixed_name
=
VLC_TRUE
;
p_i
->
p_stats
=
NULL
;
p_i
->
p_meta
=
NULL
;
vlc_mutex_init
(
p_o
,
&
p_i
->
lock
);
vlc_event_manager_init
(
&
p_i
->
event_manager
,
p_i
,
p_o
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemMetaChanged
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemSubItemAdded
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemDurationChanged
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemPreparsedChanged
);
}
static
inline
void
input_item_SetPreparsed
(
input_item_t
*
p_i
,
vlc_bool_t
preparsed
)
{
...
...
src/input/item.c
View file @
2684aa49
...
...
@@ -34,6 +34,88 @@
static
void
GuessType
(
input_item_t
*
p_item
);
/** Stuff moved out of vlc_input.h -- FIXME: should probably not be inline
* anyway. */
static
inline
void
input_ItemInit
(
vlc_object_t
*
p_o
,
input_item_t
*
p_i
)
{
memset
(
p_i
,
0
,
sizeof
(
input_item_t
)
);
p_i
->
psz_name
=
NULL
;
p_i
->
psz_uri
=
NULL
;
TAB_INIT
(
p_i
->
i_es
,
p_i
->
es
);
TAB_INIT
(
p_i
->
i_options
,
p_i
->
ppsz_options
);
p_i
->
optflagv
=
NULL
,
p_i
->
optflagc
=
0
;
TAB_INIT
(
p_i
->
i_categories
,
p_i
->
pp_categories
);
p_i
->
i_type
=
ITEM_TYPE_UNKNOWN
;
p_i
->
b_fixed_name
=
VLC_TRUE
;
p_i
->
p_stats
=
NULL
;
p_i
->
p_meta
=
NULL
;
vlc_mutex_init
(
p_o
,
&
p_i
->
lock
);
vlc_event_manager_init
(
&
p_i
->
event_manager
,
p_i
,
p_o
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemMetaChanged
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemSubItemAdded
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemDurationChanged
);
vlc_event_manager_register_event_type
(
&
p_i
->
event_manager
,
vlc_InputItemPreparsedChanged
);
}
static
inline
void
input_ItemClean
(
input_item_t
*
p_i
)
{
int
i
;
vlc_event_manager_fini
(
&
p_i
->
event_manager
);
free
(
p_i
->
psz_name
);
free
(
p_i
->
psz_uri
);
if
(
p_i
->
p_stats
)
{
vlc_mutex_destroy
(
&
p_i
->
p_stats
->
lock
);
free
(
p_i
->
p_stats
);
}
if
(
p_i
->
p_meta
)
vlc_meta_Delete
(
p_i
->
p_meta
);
for
(
i
=
0
;
i
<
p_i
->
i_options
;
i
++
)
free
(
p_i
->
ppsz_options
[
i
]
);
TAB_CLEAN
(
p_i
->
i_options
,
p_i
->
ppsz_options
);
free
(
p_i
->
optflagv
);
for
(
i
=
0
;
i
<
p_i
->
i_es
;
i
++
)
{
es_format_Clean
(
p_i
->
es
[
i
]
);
free
(
p_i
->
es
[
i
]
);
}
TAB_CLEAN
(
p_i
->
i_es
,
p_i
->
es
);
for
(
i
=
0
;
i
<
p_i
->
i_categories
;
i
++
)
{
info_category_t
*
p_category
=
p_i
->
pp_categories
[
i
];
int
j
;
for
(
j
=
0
;
j
<
p_category
->
i_infos
;
j
++
)
{
struct
info_t
*
p_info
=
p_category
->
pp_infos
[
j
];
free
(
p_info
->
psz_name
);
free
(
p_info
->
psz_value
);
free
(
p_info
);
}
TAB_CLEAN
(
p_category
->
i_infos
,
p_category
->
pp_infos
);
free
(
p_category
->
psz_name
);
free
(
p_category
);
}
TAB_CLEAN
(
p_i
->
i_categories
,
p_i
->
pp_categories
);
vlc_mutex_destroy
(
&
p_i
->
lock
);
}
void
input_item_SetMeta
(
input_item_t
*
p_i
,
vlc_meta_type_t
meta_type
,
const
char
*
psz_val
)
{
vlc_event_t
event
;
...
...
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