From 8ae2f388b69105b81c49483bdae443aabfa9e26e Mon Sep 17 00:00:00 2001 From: Monroe Linden Date: Wed, 28 Oct 2009 17:34:03 -0700 Subject: Fixes for DEV-41791 and DEV-41920. Reworked some of the autoplay logic in LLViewerMediaImpl to try and make it more consistent when media is unloaded and reloaded by the performance manager. LLViewerMediaImpl will now keep track of the media state and current time of media that it unloads for performance reasons, and attempt to restore playing or paused media to the same playhead time and state (playing or paused) when it reloads. Added "done" status that time-based media plugins can use to indicate that they've reached the end of the media and stopped. Added logging of priority transitions, for use in debugging issues with the peformance manager. --- indra/media_plugins/base/media_plugin_base.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/media_plugins/base/media_plugin_base.cpp') diff --git a/indra/media_plugins/base/media_plugin_base.cpp b/indra/media_plugins/base/media_plugin_base.cpp index 0b7092fad6..6acac07423 100644 --- a/indra/media_plugins/base/media_plugin_base.cpp +++ b/indra/media_plugins/base/media_plugin_base.cpp @@ -64,6 +64,7 @@ std::string MediaPluginBase::statusString() case STATUS_ERROR: result = "error"; break; case STATUS_PLAYING: result = "playing"; break; case STATUS_PAUSED: result = "paused"; break; + case STATUS_DONE: result = "done"; break; default: // keep the empty string break; -- cgit v1.2.3