Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6f436e21
Commit
6f436e21
authored
Mar 11, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input_item: new input_item_Copy()
parent
190459cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
include/vlc_input_item.h
include/vlc_input_item.h
+6
-0
src/input/item.c
src/input/item.c
+25
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
include/vlc_input_item.h
View file @
6f436e21
...
@@ -263,6 +263,12 @@ VLC_EXPORT( input_item_t *, input_item_NewExt, (vlc_object_t *, const char *psz_
...
@@ -263,6 +263,12 @@ VLC_EXPORT( input_item_t *, input_item_NewExt, (vlc_object_t *, const char *psz_
*/
*/
#define input_item_New( a,b,c ) input_item_NewExt( a, b, c, 0, NULL, 0, -1 )
#define input_item_New( a,b,c ) input_item_NewExt( a, b, c, 0, NULL, 0, -1 )
/**
* This function creates a new input_item_t as a copy of another.
*/
VLC_EXPORT
(
input_item_t
*
,
input_item_Copy
,
(
vlc_object_t
*
,
input_item_t
*
)
);
/******************
/******************
* Input stats
* Input stats
******************/
******************/
...
...
src/input/item.c
View file @
6f436e21
...
@@ -876,6 +876,31 @@ input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
...
@@ -876,6 +876,31 @@ input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
return
p_input
;
return
p_input
;
}
}
input_item_t
*
input_item_Copy
(
vlc_object_t
*
p_obj
,
input_item_t
*
p_input
)
{
vlc_mutex_lock
(
&
p_input
->
lock
);
input_item_t
*
p_new_input
=
input_item_NewWithType
(
p_obj
,
p_input
->
psz_uri
,
p_input
->
psz_name
,
0
,
NULL
,
0
,
p_input
->
i_duration
,
p_input
->
i_type
);
if
(
p_new_input
)
{
for
(
int
i
=
0
;
i
<
p_input
->
i_options
;
i
++
)
{
input_item_AddOption
(
p_new_input
,
p_input
->
ppsz_options
[
i
],
p_input
->
optflagv
[
i
]
);
}
}
vlc_mutex_unlock
(
&
p_input
->
lock
);
return
p_new_input
;
}
struct
item_type_entry
struct
item_type_entry
{
{
const
char
psz_scheme
[
7
];
const
char
psz_scheme
[
7
];
...
...
src/libvlccore.sym
View file @
6f436e21
...
@@ -189,6 +189,7 @@ input_DetachResource
...
@@ -189,6 +189,7 @@ input_DetachResource
input_GetItem
input_GetItem
input_item_AddInfo
input_item_AddInfo
input_item_AddOption
input_item_AddOption
input_item_Copy
input_item_CopyOptions
input_item_CopyOptions
input_item_DelInfo
input_item_DelInfo
input_item_GetDuration
input_item_GetDuration
...
...
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