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
c6cce792
Commit
c6cce792
authored
Dec 09, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cumulated UPnP fixes from Christian Henz
parent
75f2ed95
Changes
2
Hide 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 @
c6cce792
...
@@ -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 @
c6cce792
...
@@ -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>
*
*
...
@@ -256,28 +256,31 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
...
@@ -256,28 +256,31 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
return
;
return
;
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"
);
ItemNode
*
iNode
=
(
ItemNode
*
)
node
;
return
;
}
ContainerNode
*
conNode
=
(
ContainerNode
*
)
node
;
playlist_item_t
*
p_item
;
ItemNode
*
iNode
=
(
ItemNode
*
)
node
;
p_item
=
playlist_ItemNew
(
p_sd
,
iNode
->
getResource
(),
title
);
playlist_NodeAddItem
(
p_sys
->
p_playlist
,
p_item
,
VIEW_CATEGORY
,
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
playlist_item_t
*
p_item
;
}
else
if
(
node
->
isContainerNode
()
)
p_item
=
playlist_ItemNew
(
p_sd
,
iNode
->
getResource
(),
title
);
{
playlist_NodeAddItem
(
p_sys
->
p_playlist
,
p_item
,
VIEW_CATEGORY
,
ContainerNode
*
conNode
=
(
ContainerNode
*
)
node
;
p_parent
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
/*if( !cnode->hasContainerNodes() )
char
*
p_name
=
strdup
(
title
);
/* See other comment on strdup */
return;*/
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