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
85b9974d
Commit
85b9974d
authored
Dec 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_discoverer.c: Set the corresponding media_list to read-only.
parent
8299af70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/control/media_discoverer.c
src/control/media_discoverer.c
+3
-2
No files found.
src/control/media_discoverer.c
View file @
85b9974d
...
@@ -46,7 +46,7 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
...
@@ -46,7 +46,7 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
p_item
,
NULL
);
p_item
,
NULL
);
libvlc_media_list_lock
(
p_mdis
->
p_mlist
);
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
);
libvlc_media_list_unlock
(
p_mdis
->
p_mlist
);
}
}
...
@@ -68,7 +68,7 @@ static void services_discovery_item_removed( const vlc_event_t * p_event,
...
@@ -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
);
p_md
=
libvlc_media_list_item_at_index
(
p_mdis
->
p_mlist
,
i
,
NULL
);
if
(
p_md
->
p_input_item
==
p_item
)
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
;
break
;
}
}
}
}
...
@@ -128,6 +128,7 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
...
@@ -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_libvlc_instance
=
p_inst
;
p_mdis
->
p_mlist
=
libvlc_media_list_new
(
p_inst
,
NULL
);
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
->
running
=
VLC_FALSE
;
p_mdis
->
p_event_manager
=
libvlc_event_manager_new
(
p_mdis
,
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