[vlc-commits] stream_filter: smooth: fix always zero get_lead()
Francois Cartegnie
git at videolan.org
Tue Oct 28 15:14:55 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 28 15:07:12 2014 +0100| [d99bf09b92b841666b838369be26c4128b12cebd] | committer: Francois Cartegnie
stream_filter: smooth: fix always zero get_lead()
Was downloading regardless of consumer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d99bf09b92b841666b838369be26c4128b12cebd
---
modules/stream_filter/smooth/downloader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/downloader.c b/modules/stream_filter/smooth/downloader.c
index a34bf74..bf3faf8 100644
--- a/modules/stream_filter/smooth/downloader.c
+++ b/modules/stream_filter/smooth/downloader.c
@@ -547,7 +547,7 @@ static inline uint64_t get_lead( stream_t *s )
else
lead = alead;
- if( p_sys->playback.toffset > lead )
+ if( p_sys->playback.toffset < lead )
lead -= p_sys->playback.toffset;
else
lead = 0;
More information about the vlc-commits
mailing list