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
28ca1b85
Commit
28ca1b85
authored
Jan 28, 2016
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upnp: Use information returned by the server
parent
007f2bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+24
-0
No files found.
modules/services_discovery/upnp.cpp
View file @
28ca1b85
...
@@ -953,6 +953,30 @@ input_item_t* MediaServer::getNextItem()
...
@@ -953,6 +953,30 @@ input_item_t* MediaServer::getNextItem()
p_item
=
newItem
(
title
,
objectID
,
i_duration
,
p_item
=
newItem
(
title
,
objectID
,
i_duration
,
psz_resource_url
);
psz_resource_url
);
if
(
p_item
!=
NULL
)
{
const
char
*
psz_artist
=
xml_getChildElementValue
(
itemElement
,
"upnp:artist"
);
if
(
psz_artist
!=
NULL
)
input_item_SetArtist
(
p_item
,
psz_artist
);
const
char
*
psz_genre
=
xml_getChildElementValue
(
itemElement
,
"upnp:genre"
);
if
(
psz_genre
!=
NULL
)
input_item_SetGenre
(
p_item
,
psz_genre
);
const
char
*
psz_album
=
xml_getChildElementValue
(
itemElement
,
"upnp:album"
);
if
(
psz_album
!=
NULL
)
input_item_SetAlbum
(
p_item
,
psz_album
);
const
char
*
psz_date
=
xml_getChildElementValue
(
itemElement
,
"dc:date"
);
if
(
psz_date
!=
NULL
)
input_item_SetDate
(
p_item
,
psz_date
);
const
char
*
psz_orig_track_nb
=
xml_getChildElementValue
(
itemElement
,
"upnp:originalTrackNumber"
);
if
(
psz_orig_track_nb
!=
NULL
)
input_item_SetTrackNumber
(
p_item
,
psz_orig_track_nb
);
const
char
*
psz_album_artist
=
xml_getChildElementValue
(
itemElement
,
"upnp:albumArtist"
);
if
(
psz_album_artist
!=
NULL
)
input_item_SetAlbumArtist
(
p_item
,
psz_album_artist
);
const
char
*
psz_albumArt
=
xml_getChildElementValue
(
itemElement
,
"upnp:albumArtURI"
);
if
(
psz_albumArt
!=
NULL
)
input_item_SetArtworkURL
(
p_item
,
psz_albumArt
);
}
}
}
ixmlNodeList_free
(
p_resource_list
);
ixmlNodeList_free
(
p_resource_list
);
}
}
...
...
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