summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/totem/files/totem-2.30.1-fix-qt-eos.patch')
-rw-r--r--media-video/totem/files/totem-2.30.1-fix-qt-eos.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/media-video/totem/files/totem-2.30.1-fix-qt-eos.patch b/media-video/totem/files/totem-2.30.1-fix-qt-eos.patch
new file mode 100644
index 0000000..36147aa
--- /dev/null
+++ b/media-video/totem/files/totem-2.30.1-fix-qt-eos.patch
@@ -0,0 +1,30 @@
+From f6fa6e869330bb2e64b67f966f6873412c3ca081 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess@hadess.net>
+Date: Fri, 07 May 2010 09:10:55 +0000
+Subject: Fix position when QT gets to EOS
+
+When QuickTime reaches the end of a stream, the expected behaviour
+is for the position to stay at the end of the file, rather than
+back at 0.
+---
+diff --git a/browser-plugin/totemPlugin.cpp b/browser-plugin/totemPlugin.cpp
+index 25cf7ff..5382bb2 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:
+--
+cgit v0.8.3.1