Fix a problem with the media filter not working properly when the user turns the streams on. Previously it only worked when the avatar tpd or the stream source changed. Also set the filter on by default.
This commit is contained in:
@@ -200,7 +200,7 @@
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>MediaFilterRect</key>
|
||||
<map>
|
||||
|
||||
@@ -529,6 +529,7 @@ void LLOverlayBar::toggleMediaPlay(void*)
|
||||
LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
if (parcel)
|
||||
{
|
||||
LLViewerParcelMedia::sIsUserAction = true;
|
||||
LLViewerParcelMedia::play(parcel);
|
||||
}
|
||||
}
|
||||
@@ -554,7 +555,8 @@ void LLOverlayBar::toggleMusicPlay(void*)
|
||||
// stream is stopped, it doesn't return the right thing - commenting out for now.
|
||||
// if ( gAudiop->isInternetStreamPlaying() == 0 )
|
||||
{
|
||||
gAudiop->startInternetStream(parcel->getMusicURL());
|
||||
LLViewerParcelMedia::sIsUserAction = true;
|
||||
LLViewerParcelMedia::playStreamingMusic(parcel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user