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
0f756a9d
Commit
0f756a9d
authored
Dec 09, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [13652]
parent
72618adb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
THANKS
THANKS
+1
-0
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+25
-20
No files found.
THANKS
View file @
0f756a9d
...
@@ -28,6 +28,7 @@ Bruno Vella <allevb at tin.it> - Italian localization
...
@@ -28,6 +28,7 @@ Bruno Vella <allevb at tin.it> - Italian localization
Carlo Calabrò <murray at via.ecp.fr> - Italian localization
Carlo Calabrò <murray at via.ecp.fr> - Italian localization
Carsten Gottbehüt <gottbehuet at active-elements dot de> - v4l hotplug fix
Carsten Gottbehüt <gottbehuet at active-elements dot de> - v4l hotplug fix
Chris Clepper - OpenGL fix
Chris Clepper - OpenGL fix
Christian Henz - UPnP service discovery fixes
Christof Baumgaertner - dbox web intf
Christof Baumgaertner - dbox web intf
Christophe Mutricy <xtophe at nxtelevision dot com> - many fixes (preferences, M3U, ...)
Christophe Mutricy <xtophe at nxtelevision dot com> - many fixes (preferences, M3U, ...)
Christopher Johnson <cjohnson at mint.net> - Qt fix in vlc.spec
Christopher Johnson <cjohnson at mint.net> - Qt fix in vlc.spec
...
...
modules/services_discovery/upnp.cpp
View file @
0f756a9d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* upnp.cpp : UPnP discovery module
* upnp.cpp : UPnP discovery module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2004-2005 the VideoLAN team
* Copyright (C) 2004-2005 the VideoLAN team
* $Id
: sap.c 11664 2005-07-09 06:17:09Z courmisch
$
* $Id$
*
*
* Authors: Rémi Denis-Courmont <rem # videolan.org>
* Authors: Rémi Denis-Courmont <rem # videolan.org>
*
*
...
@@ -257,27 +257,30 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
...
@@ -257,27 +257,30 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
msg_Dbg
(
p_sd
,
"title = %s"
,
title
);
msg_Dbg
(
p_sd
,
"title = %s"
,
title
);
if
(
!
node
->
isContainerNode
()
)
if
(
node
->
isItemNode
()
)
{
{
msg_Dbg
(
p_sd
,
"not a container"
);
return
;
}
ContainerNode
*
conNode
=
(
ContainerNode
*
)
node
;
ItemNode
*
iNode
=
(
ItemNode
*
)
node
;
ItemNode
*
iNode
=
(
ItemNode
*
)
node
;
playlist_item_t
*
p_item
;
playlist_item_t
*
p_item
;
p_item
=
playlist_ItemNew
(
p_sd
,
iNode
->
getResource
(),
title
);
p_item
=
playlist_ItemNew
(
p_sd
,
iNode
->
getResource
(),
title
);
playlist_NodeAddItem
(
p_sys
->
p_playlist
,
p_item
,
VIEW_CATEGORY
,
playlist_NodeAddItem
(
p_sys
->
p_playlist
,
p_item
,
VIEW_CATEGORY
,
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
/*if( !cnode->hasContainerNodes() )
}
else
if
(
node
->
isContainerNode
()
)
return;*/
{
ContainerNode
*
conNode
=
(
ContainerNode
*
)
node
;
char
*
p_name
=
strdup
(
title
);
/* See other comment on strdup */
playlist_item_t
*
p_node
=
playlist_NodeCreate
(
p_sys
->
p_playlist
,
VIEW_CATEGORY
,
p_name
,
p_parent
);
free
(
p_name
);
unsigned
nContentNodes
=
conNode
->
getNContentNodes
();
unsigned
nContentNodes
=
conNode
->
getNContentNodes
();
for
(
unsigned
n
=
0
;
n
<
nContentNodes
;
n
++
)
for
(
unsigned
n
=
0
;
n
<
nContentNodes
;
n
++
)
AddContent
(
p_item
,
conNode
->
getContentNode
(
n
)
);
AddContent
(
p_node
,
conNode
->
getContentNode
(
n
)
);
}
}
}
...
@@ -316,10 +319,12 @@ void UPnPHandler::deviceSearchResponseReceived( SSDPPacket *packet )
...
@@ -316,10 +319,12 @@ void UPnPHandler::deviceSearchResponseReceived( SSDPPacket *packet )
packet
->
getNTS
(
nts
);
packet
->
getNTS
(
nts
);
udn
=
usn
.
substr
(
0
,
usn
.
find
(
"::"
)
);
udn
=
usn
.
substr
(
0
,
usn
.
find
(
"::"
)
);
/* Remove existing root device before adding updated one */
Device
*
dev
=
GetDeviceFromUSN
(
usn
);
Device
*
dev
=
GetDeviceFromUSN
(
usn
);
if
(
packet
->
isByeBye
()
)
RemoveDevice
(
dev
);
RemoveDevice
(
dev
);
else
if
(
!
packet
->
isByeBye
()
)
AddDeviceContent
(
dev
);
AddDeviceContent
(
dev
);
}
}
...
...
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