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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/linden/indra/newview/llviewerparcelmedia.cpp b/linden/indra/newview/llviewerparcelmedia.cpp
index cd0197c..2925b8d 100644
--- a/linden/indra/newview/llviewerparcelmedia.cpp
+++ b/linden/indra/newview/llviewerparcelmedia.cpp
@@ -274,7 +274,8 @@ void LLViewerParcelMedia::processParcelMediaCommandMessage( LLMessageSystem *msg
274 } 274 }
275 else 275 else
276 // play 276 // play
277 if( command == PARCEL_MEDIA_COMMAND_PLAY ) 277 if(( command == PARCEL_MEDIA_COMMAND_PLAY ) ||
278 ( command == PARCEL_MEDIA_COMMAND_LOOP ))
278 { 279 {
279 if (LLViewerMedia::isMediaPaused()) 280 if (LLViewerMedia::isMediaPaused())
280 { 281 {
@@ -287,16 +288,6 @@ void LLViewerParcelMedia::processParcelMediaCommandMessage( LLMessageSystem *msg
287 } 288 }
288 } 289 }
289 else 290 else
290 // loop
291 if( command == PARCEL_MEDIA_COMMAND_LOOP )
292 {
293 //llinfos << ">>> LLMediaEngine::process_parcel_media with command = " <<( '0' + command ) << llendl;
294
295 // huh? what is play?
296 //convertImageAndLoadUrl( play );
297 //convertImageAndLoadUrl( true, false, std::string() );
298 }
299 else
300 // unload 291 // unload
301 if( command == PARCEL_MEDIA_COMMAND_UNLOAD ) 292 if( command == PARCEL_MEDIA_COMMAND_UNLOAD )
302 { 293 {
@@ -354,10 +345,19 @@ void LLViewerParcelMedia::processParcelMediaUpdate( LLMessageSystem *msg, void *
354 (parcel->getMediaHeight() == media_height) && 345 (parcel->getMediaHeight() == media_height) &&
355 (parcel->getMediaAutoScale() == media_auto_scale) && 346 (parcel->getMediaAutoScale() == media_auto_scale) &&
356 (parcel->getMediaLoop() == media_loop)); 347 (parcel->getMediaLoop() == media_loop));
357 }
358 348
359 if (!same) 349 if (!same)
360 LLViewerMedia::play(media_url, media_type, media_id, 350 {
361 media_auto_scale, media_width, media_height, 351 // temporarily store these new values in the parcel
362 media_loop); 352 parcel->setMediaURL(media_url);
353 parcel->setMediaType(media_type.c_str());
354 parcel->setMediaID(media_id);
355 parcel->setMediaWidth(media_width);
356 parcel->setMediaHeight(media_height);
357 parcel->setMediaAutoScale(media_auto_scale);
358 parcel->setMediaLoop(media_loop);
359
360 play(parcel);
361 }
362 }
363} 363}