summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--browser-plugin/totemPlugin.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
index 25cf7ff1b..5382bb23b 100644
--- a/browser-plugin/totemPlugin.cpp
+++ b/browser-plugin/totemPlugin.cpp
@@ -1276,9 +1276,12 @@ totemPlugin::TickCallback (DBusGProxy *proxy,
scriptable->mPluginState = totemNarrowSpacePlayer::eState_Playable;
break;
case TOTEM_STATE_STOPPED:
- if (scriptable->mPluginState == totemNarrowSpacePlayer::eState_Playable)
+ if (scriptable->mPluginState == totemNarrowSpacePlayer::eState_Playable) {
scriptable->mPluginState = totemNarrowSpacePlayer::eState_Complete;
- else
+ /* The QuickTime plugin expects the duration to be the
+ * length of the file on EOS */
+ plugin->mTime = plugin->mDuration;
+ } else
scriptable->mPluginState = totemNarrowSpacePlayer::eState_Waiting;
break;
default: