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
24d02d8c
Commit
24d02d8c
authored
Dec 21, 2008
by
Mirsal Ennaime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPnP services discovery: Put the callback lock reference in the p_sys data structure.
parent
8ed92b22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+5
-5
No files found.
modules/services_discovery/upnp_intel.cpp
View file @
24d02d8c
...
...
@@ -58,6 +58,7 @@ class MediaServer;
class
MediaServerList
;
class
Item
;
class
Container
;
class
Lockable
;
// VLC handle
...
...
@@ -65,6 +66,7 @@ struct services_discovery_sys_t
{
UpnpClient_Handle
clientHandle
;
MediaServerList
*
serverList
;
Lockable
*
callbackLock
;
};
// Class definitions...
...
...
@@ -269,7 +271,6 @@ vlc_module_end();
// More prototypes...
static
Lockable
*
CallbackLock
;
static
int
Callback
(
Upnp_EventType
eventType
,
void
*
event
,
void
*
user_data
);
const
char
*
xml_getChildElementValue
(
IXML_Element
*
parent
,
...
...
@@ -299,7 +300,7 @@ static int Open( vlc_object_t *p_this )
}
p_sys
->
serverList
=
new
MediaServerList
(
p_sd
);
C
allbackLock
=
new
Lockable
();
p_sys
->
c
allbackLock
=
new
Lockable
();
res
=
UpnpRegisterClient
(
Callback
,
p_sys
,
&
p_sys
->
clientHandle
);
if
(
res
!=
UPNP_E_SUCCESS
)
...
...
@@ -328,7 +329,7 @@ static void Close( vlc_object_t *p_this )
UpnpFinish
();
delete
p_sd
->
p_sys
->
serverList
;
delete
C
allbackLock
;
delete
p_sd
->
p_sys
->
c
allbackLock
;
free
(
p_sd
->
p_sys
);
}
...
...
@@ -406,10 +407,9 @@ IXML_Document* parseBrowseResult( IXML_Document* doc )
// Handles all UPnP events
static
int
Callback
(
Upnp_EventType
eventType
,
void
*
event
,
void
*
user_data
)
{
Locker
locker
(
CallbackLock
);
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
user_data
;
services_discovery_sys_t
*
p_sys
=
p_sd
->
p_sys
;
Locker
locker
(
p_sys
->
callbackLock
);
switch
(
eventType
)
{
...
...
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