[vlmc-devel] MLTFilter: Try to get end from its connected producer if unlimited.
Yikai Lu
git at videolan.org
Thu Jun 30 16:33:13 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Thu Jun 30 19:10:06 2016 +0900| [2b19d436ab7aa31952e4aaa2ab6c8d360cd38027] | committer: Yikai Lu
MLTFilter: Try to get end from its connected producer if unlimited.
> https://code.videolan.org/videolan/vlmc/commit/2b19d436ab7aa31952e4aaa2ab6c8d360cd38027
---
src/Backend/MLT/MLTFilter.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/Backend/MLT/MLTFilter.cpp b/src/Backend/MLT/MLTFilter.cpp
index afa02b4..6e62986 100644
--- a/src/Backend/MLT/MLTFilter.cpp
+++ b/src/Backend/MLT/MLTFilter.cpp
@@ -235,7 +235,12 @@ MLTFilter::begin() const
int64_t
MLTFilter::end() const
{
- return filter()->get_out();
+ auto end = filter()->get_out();
+
+ if ( end == 0 && m_connectedProducer )
+ end = m_connectedProducer->get_out();
+
+ return end ? end : MLTInput::Unlimited;
}
int64_t
More information about the Vlmc-devel
mailing list