Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e292b1147bd89a7e53742e3e5039b9a906a3b1d0 1 parent c61c546
Jonathan Marshall authored
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());
}
Please sign in to comment.
Something went wrong with that request. Please try again.