Skip to content

Commit

Permalink
[upnp] use a reference to m_streamDetails rather than taking a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Nov 2, 2012
1 parent c61c546 commit e292b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/network/upnp/UPnPInternal.cpp
Expand Up @@ -287,7 +287,7 @@ PopulateObjectFromTag(CVideoInfoTag& tag,
object.m_MiscInfo.play_count = tag.m_playCount;
if (resource) {
if (tag.HasStreamDetails()) {
const CStreamDetails details = tag.m_streamDetails;
const CStreamDetails &details = tag.m_streamDetails;
resource->m_Duration = details.GetVideoDuration();
resource->m_Resolution = NPT_String::FromInteger(details.GetVideoWidth()) + "x" + NPT_String::FromInteger(details.GetVideoHeight());
}
Expand Down

0 comments on commit e292b11

Please sign in to comment.