Permalink
Browse files

[upnp] use a reference to m_streamDetails rather than taking a copy

  • Loading branch information...
1 parent c61c546 commit e292b1147bd89a7e53742e3e5039b9a906a3b1d0 Jonathan Marshall committed Nov 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/network/upnp/UPnPInternal.cpp
View
2 xbmc/network/upnp/UPnPInternal.cpp
@@ -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());
}

0 comments on commit e292b11

Please sign in to comment.