Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
8299af70
Commit
8299af70
authored
Dec 25, 2007
by
Pierre d'Herbemont
Browse files
control/media_list.c: read-only-fy add_media_descriptor().
parent
c7e71cb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/control/libvlc_internal.h
View file @
8299af70
...
...
@@ -302,6 +302,11 @@ VLC_EXPORT (void, libvlc_media_descriptor_set_state,
(
libvlc_media_descriptor_t
*
,
libvlc_state_t
,
libvlc_exception_t
*
)
);
/* Media List */
VLC_EXPORT
(
void
,
_libvlc_media_list_add_media_descriptor
,
(
libvlc_media_list_t
*
p_mlist
,
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
)
);
VLC_EXPORT
(
void
,
_libvlc_media_list_insert_media_descriptor
,
(
libvlc_media_list_t
*
p_mlist
,
libvlc_media_descriptor_t
*
p_md
,
...
...
src/control/media_list.c
View file @
8299af70
...
...
@@ -304,6 +304,22 @@ void libvlc_media_list_add_media_descriptor(
libvlc_media_list_t
*
p_mlist
,
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
)
{
if
(
p_mlist
->
b_read_only
)
{
/* We are read only from user side */
libvlc_exception_raise
(
p_e
,
"Trying to write into a read-only media list."
);
return
;
}
_libvlc_media_list_add_media_descriptor
(
p_mlist
,
p_md
,
p_e
);
}
/* LibVLC internal version */
void
_libvlc_media_list_add_media_descriptor
(
libvlc_media_list_t
*
p_mlist
,
libvlc_media_descriptor_t
*
p_md
,
libvlc_exception_t
*
p_e
)
{
(
void
)
p_e
;
libvlc_media_descriptor_retain
(
p_md
);
...
...
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