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
caeee6e2
Commit
caeee6e2
authored
Apr 19, 2011
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPNP: Add some debug messages.
parent
76b349a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+17
-1
No files found.
modules/services_discovery/upnp.cpp
View file @
caeee6e2
...
...
@@ -113,7 +113,7 @@ static int Open( vlc_object_t *p_this )
MEDIA_SERVER_DEVICE_TYPE
,
p_sd
);
if
(
i_res
!=
UPNP_E_SUCCESS
)
{
msg_Err
(
p_sd
,
"
Search failed
: %s"
,
UpnpGetErrorMessage
(
i_res
)
);
msg_Err
(
p_sd
,
"
Error sending search request
: %s"
,
UpnpGetErrorMessage
(
i_res
)
);
Close
(
(
vlc_object_t
*
)
p_sd
);
return
VLC_EGENERIC
;
}
...
...
@@ -384,7 +384,10 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
xml_getChildElementValue
(
p_service_element
,
"serviceType"
);
if
(
!
psz_service_type
)
{
msg_Warn
(
p_sd
,
"No service type found."
);
continue
;
}
if
(
strcmp
(
CONTENT_DIRECTORY_SERVICE_TYPE
,
psz_service_type
)
!=
0
)
...
...
@@ -394,13 +397,19 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
xml_getChildElementValue
(
p_service_element
,
"eventSubURL"
);
if
(
!
psz_event_sub_url
)
{
msg_Warn
(
p_sd
,
"No event subscription url found."
);
continue
;
}
const
char
*
psz_control_url
=
xml_getChildElementValue
(
p_service_element
,
"controlURL"
);
if
(
!
psz_control_url
)
{
msg_Warn
(
p_sd
,
"No control url found."
);
continue
;
}
// Try to subscribe to ContentDirectory service
...
...
@@ -688,6 +697,13 @@ bool MediaServer::_fetchContents( Container* p_parent )
msg_Err
(
_p_sd
,
"browse() response parsing failed"
);
return
false
;
}
#ifndef NDEBUG
else
{
msg_Dbg
(
_p_sd
,
"Got DIDL document: %s"
,
ixmlPrintDocument
(
p_result
)
);
}
#endif
IXML_NodeList
*
containerNodeList
=
ixmlDocument_getElementsByTagName
(
p_result
,
"container"
);
...
...
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