Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
6f5d4e4a
Commit
6f5d4e4a
authored
Aug 09, 2007
by
Pierre d'Herbemont
Browse files
control/media_descriptor: Implement libvlc_media_descriptor_get_mrl.
parent
c55d47b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc/libvlc.h
View file @
6f5d4e4a
...
...
@@ -147,6 +147,9 @@ VLC_PUBLIC_API void libvlc_media_descriptor_retain(
VLC_PUBLIC_API
void
libvlc_media_descriptor_release
(
libvlc_media_descriptor_t
*
p_meta_desc
);
VLC_PUBLIC_API
char
*
libvlc_media_descriptor_get_mrl
(
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
);
/**
* Read the meta of the media descriptor.
* \param p_meta_desc the media descriptor to read
...
...
src/control/media_descriptor.c
View file @
6f5d4e4a
...
...
@@ -149,6 +149,17 @@ libvlc_media_descriptor_duplicate( libvlc_media_descriptor_t *p_md_orig )
return
p_md
;
}
/**************************************************************************
* Retain a media descriptor object
**************************************************************************/
char
*
libvlc_media_descriptor_get_mrl
(
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
)
{
(
void
)
p_e
;
return
strdup
(
p_md
->
p_input_item
->
psz_uri
);
}
/**************************************************************************
* Getter for meta information
**************************************************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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