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
76b349a3
Commit
76b349a3
authored
Apr 19, 2011
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPNP: When removing server, also remove it from SD listings
parent
506a4fc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+7
-0
modules/services_discovery/upnp.hpp
modules/services_discovery/upnp.hpp
+1
-0
No files found.
modules/services_discovery/upnp.cpp
View file @
76b349a3
...
@@ -856,6 +856,11 @@ void MediaServer::setInputItem( input_item_t* p_input_item )
...
@@ -856,6 +856,11 @@ void MediaServer::setInputItem( input_item_t* p_input_item )
_p_input_item
=
p_input_item
;
_p_input_item
=
p_input_item
;
}
}
input_item_t
*
MediaServer
::
getInputItem
()
const
{
return
_p_input_item
;
}
bool
MediaServer
::
compareSID
(
const
char
*
psz_sid
)
bool
MediaServer
::
compareSID
(
const
char
*
psz_sid
)
{
{
return
(
strncmp
(
_subscription_id
,
psz_sid
,
sizeof
(
Upnp_SID
)
)
==
0
);
return
(
strncmp
(
_subscription_id
,
psz_sid
,
sizeof
(
Upnp_SID
)
)
==
0
);
...
@@ -934,6 +939,8 @@ void MediaServerList::removeServer( const char* psz_udn )
...
@@ -934,6 +939,8 @@ void MediaServerList::removeServer( const char* psz_udn )
msg_Dbg
(
_p_sd
,
"Removing server '%s'"
,
p_server
->
getFriendlyName
()
);
msg_Dbg
(
_p_sd
,
"Removing server '%s'"
,
p_server
->
getFriendlyName
()
);
services_discovery_RemoveItem
(
_p_sd
,
p_server
->
getInputItem
()
);
std
::
vector
<
MediaServer
*>::
iterator
it
;
std
::
vector
<
MediaServer
*>::
iterator
it
;
for
(
it
=
_list
.
begin
();
it
!=
_list
.
end
();
++
it
)
for
(
it
=
_list
.
begin
();
it
!=
_list
.
end
();
++
it
)
{
{
...
...
modules/services_discovery/upnp.hpp
View file @
76b349a3
...
@@ -63,6 +63,7 @@ public:
...
@@ -63,6 +63,7 @@ public:
void
fetchContents
();
void
fetchContents
();
void
setInputItem
(
input_item_t
*
p_input_item
);
void
setInputItem
(
input_item_t
*
p_input_item
);
input_item_t
*
getInputItem
()
const
;
bool
compareSID
(
const
char
*
psz_sid
);
bool
compareSID
(
const
char
*
psz_sid
);
...
...
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