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
8299af70
Commit
8299af70
authored
Dec 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_list.c: read-only-fy add_media_descriptor().
parent
c7e71cb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
src/control/libvlc_internal.h
src/control/libvlc_internal.h
+5
-0
src/control/media_list.c
src/control/media_list.c
+16
-0
No files found.
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