From e292b1147bd89a7e53742e3e5039b9a906a3b1d0 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Fri, 2 Nov 2012 16:38:27 +1300 Subject: [upnp] use a reference to m_streamDetails rather than taking a copy --- xbmc/network/upnp/UPnPInternal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/network/upnp/UPnPInternal.cpp b/xbmc/network/upnp/UPnPInternal.cpp index ff335179a4..39a610fe9c 100644 --- a/xbmc/network/upnp/UPnPInternal.cpp +++ b/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()); } -- cgit v1.2.3