Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
90a6e085
Commit
90a6e085
authored
Jul 28, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upnp_intel: Fix playlist locking.
parent
67cc1732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+10
-3
No files found.
modules/services_discovery/upnp_intel.cpp
View file @
90a6e085
...
@@ -309,10 +309,12 @@ static void Close( vlc_object_t *p_this )
...
@@ -309,10 +309,12 @@ static void Close( vlc_object_t *p_this )
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
vlc_object_lock
(
p_sys
->
p_playlist
);
playlist_NodeDelete
(
pl_Get
(
p_sd
),
p_sys
->
p_node_one
,
true
,
playlist_NodeDelete
(
pl_Get
(
p_sd
),
p_sys
->
p_node_one
,
true
,
true
);
true
);
playlist_NodeDelete
(
pl_Get
(
p_sd
),
p_sys
->
p_node_cat
,
true
,
playlist_NodeDelete
(
pl_Get
(
p_sd
),
p_sys
->
p_node_cat
,
true
,
true
);
true
);
vlc_object_unlock
(
p_sys
->
p_playlist
);
pl_Release
(
p_sd
);
pl_Release
(
p_sd
);
free
(
p_sys
);
free
(
p_sys
);
}
}
...
@@ -629,8 +631,10 @@ MediaServer::~MediaServer()
...
@@ -629,8 +631,10 @@ MediaServer::~MediaServer()
{
{
if
(
_contents
)
if
(
_contents
)
{
{
vlc_object_lock
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
);
playlist_NodeDelete
(
pl_Get
(
_cookie
->
serviceDiscovery
)
,
playlist_NodeDelete
(
pl_Get
(
_cookie
->
serviceDiscovery
)
,
_playlistNode
,
true
,
true
);
_playlistNode
,
true
,
true
);
vlc_object_unlock
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
);
}
}
delete
_contents
;
delete
_contents
;
...
@@ -927,9 +931,12 @@ bool MediaServerList::addServer( MediaServer* s )
...
@@ -927,9 +931,12 @@ bool MediaServerList::addServer( MediaServer* s )
_list
.
push_back
(
s
);
_list
.
push_back
(
s
);
char
*
name
=
strdup
(
s
->
getFriendlyName
()
);
char
*
name
=
strdup
(
s
->
getFriendlyName
()
);
playlist_item_t
*
node
=
playlist_NodeCreate
(
pl_Get
(
_cookie
->
serviceDiscovery
),
vlc_object_lock
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
);
name
,
playlist_item_t
*
node
=
playlist_NodeCreate
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_node_cat
,
0
,
NULL
);
pl_Get
(
_cookie
->
serviceDiscovery
),
name
,
_cookie
->
serviceDiscovery
->
p_sys
->
p_node_cat
,
0
,
NULL
);
vlc_object_unlock
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
);
free
(
name
);
free
(
name
);
s
->
setPlaylistNode
(
node
);
s
->
setPlaylistNode
(
node
);
...
...
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