Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a6b44483
Commit
a6b44483
authored
Aug 30, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use cookie reference, not (uninitialized) value
parent
ba37f147
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+7
-6
No files found.
modules/services_discovery/upnp_intel.cpp
View file @
a6b44483
...
...
@@ -301,7 +301,7 @@ static int Open( vlc_object_t *p_this )
p_sd
->
p_sys
=
p_sys
;
p_sys
->
p_playlist
=
pl_Yield
(
p_sd
);
Cookie
cookie
=
p_sys
->
cookie
;
Cookie
*
cookie
=
&
p_sys
->
cookie
;
/* Create our playlist node */
vlc_object_lock
(
p_sys
->
p_playlist
);
...
...
@@ -310,9 +310,9 @@ static int Open( vlc_object_t *p_this )
true
);
vlc_object_unlock
(
p_sys
->
p_playlist
);
p_sys
->
cookie
.
serviceDiscovery
=
p_sd
;
p_sys
->
cookie
.
serverList
=
new
MediaServerList
(
&
cookie
);
p_sys
->
cookie
.
lock
=
new
Lockable
(
);
cookie
->
serviceDiscovery
=
p_sd
;
cookie
->
lock
=
new
Lockable
(
);
cookie
->
serverList
=
new
MediaServerList
(
cookie
);
int
res
=
UpnpInit
(
0
,
0
);
if
(
res
!=
UPNP_E_SUCCESS
)
...
...
@@ -321,14 +321,15 @@ static int Open( vlc_object_t *p_this )
goto
shutDown
;
}
res
=
UpnpRegisterClient
(
Callback
,
&
cookie
,
&
cookie
.
clientHandle
);
res
=
UpnpRegisterClient
(
Callback
,
cookie
,
&
cookie
->
clientHandle
);
if
(
res
!=
UPNP_E_SUCCESS
)
{
msg_Err
(
p_sd
,
"%s"
,
UpnpGetErrorMessage
(
res
)
);
goto
shutDown
;
}
res
=
UpnpSearchAsync
(
cookie
.
clientHandle
,
5
,
MEDIA_SERVER_DEVICE_TYPE
,
&
cookie
);
res
=
UpnpSearchAsync
(
cookie
->
clientHandle
,
5
,
MEDIA_SERVER_DEVICE_TYPE
,
cookie
);
if
(
res
!=
UPNP_E_SUCCESS
)
{
msg_Err
(
p_sd
,
"%s"
,
UpnpGetErrorMessage
(
res
)
);
...
...
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