[vlmc-devel] MainWorkflow: Return actual playable length in clipInfo

Yikai Lu git at videolan.org
Mon Aug 7 19:18:28 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Aug  8 01:07:56 2017 +0900| [63d7a8f25002cfc545af67e7e00b7396822ab33c] | committer: Yikai Lu

MainWorkflow: Return actual playable length in clipInfo

> https://code.videolan.org/videolan/vlmc/commit/63d7a8f25002cfc545af67e7e00b7396822ab33c
---

 src/Workflow/MainWorkflow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 18fed9ce..40631f26 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -210,7 +210,7 @@ MainWorkflow::clipInfo( const QString& uuid )
         auto clip = c->clip;
         auto h = clip->toVariant().toHash();
         h["uuid"] = uuid;
-        h["length"] = (qint64)( clip->input()->length() );
+        h["length"] = clip->length();
         h["name"] = clip->media()->title();
         h["audio"] = c->isAudio;
 



More information about the Vlmc-devel mailing list