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
85b9974d
Commit
85b9974d
authored
Dec 25, 2007
by
Pierre d'Herbemont
Browse files
control/media_discoverer.c: Set the corresponding media_list to read-only.
parent
8299af70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/control/media_discoverer.c
View file @
85b9974d
...
...
@@ -46,7 +46,7 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
p_item
,
NULL
);
libvlc_media_list_lock
(
p_mdis
->
p_mlist
);
libvlc_media_list_add_media_descriptor
(
p_mdis
->
p_mlist
,
p_md
,
NULL
);
_
libvlc_media_list_add_media_descriptor
(
p_mdis
->
p_mlist
,
p_md
,
NULL
);
libvlc_media_list_unlock
(
p_mdis
->
p_mlist
);
}
...
...
@@ -68,7 +68,7 @@ static void services_discovery_item_removed( const vlc_event_t * p_event,
p_md
=
libvlc_media_list_item_at_index
(
p_mdis
->
p_mlist
,
i
,
NULL
);
if
(
p_md
->
p_input_item
==
p_item
)
{
libvlc_media_list_remove_index
(
p_mdis
->
p_mlist
,
i
,
NULL
);
_
libvlc_media_list_remove_index
(
p_mdis
->
p_mlist
,
i
,
NULL
);
break
;
}
}
...
...
@@ -128,6 +128,7 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
p_mdis
->
p_libvlc_instance
=
p_inst
;
p_mdis
->
p_mlist
=
libvlc_media_list_new
(
p_inst
,
NULL
);
p_mdis
->
p_mlist
->
b_read_only
=
VLC_TRUE
;
p_mdis
->
running
=
VLC_FALSE
;
p_mdis
->
p_event_manager
=
libvlc_event_manager_new
(
p_mdis
,
...
...
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