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
af1e3b56
Commit
af1e3b56
authored
Dec 19, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_descriptor.c: Implement libvlc_media_descriptor_new_as_node.
parent
cdd8da99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+10
-0
src/control/media_descriptor.c
src/control/media_descriptor.c
+27
-0
No files found.
include/vlc/libvlc.h
View file @
af1e3b56
...
...
@@ -152,6 +152,16 @@ VLC_PUBLIC_API libvlc_media_descriptor_t * libvlc_media_descriptor_new(
const
char
*
psz_mrl
,
libvlc_exception_t
*
p_e
);
/**
* Create a media descriptor as an empty node with the passed name.
* \param p_instance the instance
* \param psz_name the name of the node
*/
VLC_PUBLIC_API
libvlc_media_descriptor_t
*
libvlc_media_descriptor_new_as_node
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_e
);
/**
* Add an option to the media descriptor,
* This option will be used to determine how the media_instance will
...
...
src/control/media_descriptor.c
View file @
af1e3b56
...
...
@@ -298,6 +298,33 @@ libvlc_media_descriptor_t * libvlc_media_descriptor_new(
return
p_md
;
}
/**************************************************************************
* Create a new media descriptor object
**************************************************************************/
libvlc_media_descriptor_t
*
libvlc_media_descriptor_new_as_node
(
libvlc_instance_t
*
p_instance
,
const
char
*
psz_name
,
libvlc_exception_t
*
p_e
)
{
input_item_t
*
p_input_item
;
libvlc_media_descriptor_t
*
p_md
;
p_input_item
=
input_ItemNew
(
p_instance
->
p_libvlc_int
,
"vlc:nop"
,
psz_name
);
if
(
!
p_input_item
)
{
libvlc_exception_raise
(
p_e
,
"Can't create md's input_item"
);
return
NULL
;
}
p_md
=
libvlc_media_descriptor_new_from_input_item
(
p_instance
,
p_input_item
,
p_e
);
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
,
NULL
);
return
p_md
;
}
/**************************************************************************
* Add an option to the media descriptor,
* that will be used to determine how the media_instance will read the
...
...
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