aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerparcelmedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerparcelmedia.cpp')
-rw-r--r--linden/indra/newview/llviewerparcelmedia.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerparcelmedia.cpp b/linden/indra/newview/llviewerparcelmedia.cpp
index 187a553..c29f277 100644
--- a/linden/indra/newview/llviewerparcelmedia.cpp
+++ b/linden/indra/newview/llviewerparcelmedia.cpp
@@ -100,9 +100,17 @@ void LLViewerParcelMedia::update(LLParcel* parcel)
100 // we have a player 100 // we have a player
101 if (parcel) 101 if (parcel)
102 { 102 {
103 if(!gAgent.getRegion())
104 {
105 sMediaRegionID = LLUUID() ;
106 stop() ;
107 return ;
108 }
109
103 // we're in a parcel 110 // we're in a parcel
104 bool new_parcel = false; 111 bool new_parcel = false;
105 S32 parcelid = parcel->getLocalID(); 112 S32 parcelid = parcel->getLocalID();
113
106 LLUUID regionid = gAgent.getRegion()->getRegionID(); 114 LLUUID regionid = gAgent.getRegion()->getRegionID();
107 if (parcelid != sMediaParcelLocalID || regionid != sMediaRegionID) 115 if (parcelid != sMediaParcelLocalID || regionid != sMediaRegionID)
108 { 116 {