[totem] Support for VLC "input.length" property



commit 7a6ed59e66fb8c0d2cd8028ae31387cd616e51f6
Author: Ivaylo Valkov <ivaylo e-valkov org>
Date:   Wed Jul 7 17:28:40 2010 +0300

    Support for VLC "input.length" property
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623790

 browser-plugin/totemConeInput.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totemConeInput.cpp b/browser-plugin/totemConeInput.cpp
index c10d57a..921c325 100644
--- a/browser-plugin/totemConeInput.cpp
+++ b/browser-plugin/totemConeInput.cpp
@@ -87,9 +87,11 @@ totemConeInput::GetPropertyByIndex (int aIndex,
     case eTime:
       return DoubleVariant (_result, double (Plugin()->GetTime()));
 
+    case eLength:
+      return DoubleVariant (_result, Plugin()->Duration());
+
     case eFps:
     case eHasVout:
-    case eLength:
     case ePosition:
     case eRate:
       TOTEM_WARN_GETTER_UNIMPLEMENTED (aIndex, _result);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]