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
0e463771
Commit
0e463771
authored
Apr 17, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media_discoverer: Typo fix. Don't add the media twice.
parent
04cfbc32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/control/media_discoverer.c
src/control/media_discoverer.c
+7
-6
No files found.
src/control/media_discoverer.c
View file @
0e463771
...
...
@@ -51,7 +51,6 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
* that category in a media_list. */
if
(
psz_cat
)
{
p_mlist
=
kVLCDictionaryNotFound
;
p_mlist
=
vlc_dictionary_value_for_key
(
&
p_mdis
->
catname_to_submedialist
,
psz_cat
);
if
(
p_mlist
==
kVLCDictionaryNotFound
)
...
...
@@ -62,7 +61,7 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
p_mlist
->
b_read_only
=
true
;
/* Insert the newly created mlist in our dictionary */
__vlc_dictionary_insert
(
&
p_mdis
->
catname_to_submedialist
,
psz_cat
,
p_mlist
,
0
);
vlc_dictionary_insert
(
&
p_mdis
->
catname_to_submedialist
,
psz_cat
,
p_mlist
);
/* Insert the md into the root list */
libvlc_media_list_lock
(
p_mdis
->
p_mlist
);
...
...
@@ -74,10 +73,12 @@ static void services_discovery_item_added( const vlc_event_t * p_event,
libvlc_media_release
(
p_catmd
);
}
}
else
{
libvlc_media_list_lock
(
p_mlist
);
_libvlc_media_list_add_media
(
p_mlist
,
p_md
,
NULL
);
libvlc_media_list_unlock
(
p_mlist
);
}
}
/**************************************************************************
...
...
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