Bug 1300500 - pass variable to SetMediaInfo as reference. r?baku
MozReview-Commit-ID: 1ARkltIhI0C
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -6536,17 +6536,17 @@ HTMLMediaElement::ShouldElementBePaused(
if (!IsActive()) {
return true;
}
return false;
}
void
-HTMLMediaElement::SetMediaInfo(const MediaInfo aInfo)
+HTMLMediaElement::SetMediaInfo(const MediaInfo& aInfo)
{
mMediaInfo = aInfo;
AudioCaptureStreamChangeIfNeeded();
}
void
HTMLMediaElement::AudioCaptureStreamChangeIfNeeded()
{
--- a/dom/html/HTMLMediaElement.h
+++ b/dom/html/HTMLMediaElement.h
@@ -734,17 +734,17 @@ public:
IMPL_EVENT_HANDLER(mozinterruptbegin)
IMPL_EVENT_HANDLER(mozinterruptend)
// These are used for testing only
float ComputedVolume() const;
bool ComputedMuted() const;
nsSuspendedTypes ComputedSuspended() const;
- void SetMediaInfo(const MediaInfo aInfo);
+ void SetMediaInfo(const MediaInfo& aInfo);
protected:
virtual ~HTMLMediaElement();
class ChannelLoader;
class MediaLoadListener;
class MediaStreamTracksAvailableCallback;
class MediaStreamTrackListener;