vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Jan 18 
15:18:59 2021 +0100| [33874d6d903ad6407849a563bb7a0f7e9bfd9f7f] | committer: 
Francois Cartegnie

demux: adaptive: fix empty commandqueue duration

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=33874d6d903ad6407849a563bb7a0f7e9bfd9f7f
---

 modules/demux/adaptive/plumbing/CommandsQueue.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptive/plumbing/CommandsQueue.cpp 
b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
index 80f31d9a7e..0cbcecda1b 100644
--- a/modules/demux/adaptive/plumbing/CommandsQueue.cpp
+++ b/modules/demux/adaptive/plumbing/CommandsQueue.cpp
@@ -454,7 +454,7 @@ bool CommandsQueue::isEOF() const
 
 vlc_tick_t CommandsQueue::getDemuxedAmount(vlc_tick_t from) const
 {
-    if( from > bufferinglevel )
+    if( bufferinglevel == VLC_TICK_INVALID || from > bufferinglevel )
         return 0;
     if( from > getFirstDTS() )
         return bufferinglevel - from;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to