Commit 439ae26683658a9db7d8486d086a88f14301ea05
1 parent
14a9a44e
Fix HLS bits per second
Showing
2 changed files
with
2 additions
and
2 deletions
src/com/upc/pbe/upcnews/BandwidthMeasurer.java
src/com/upc/pbe/upcnews/HLS.java
... | ... | @@ -41,7 +41,7 @@ public class HLS { |
41 | 41 | //long segmentBytes = fd.Download(seg.getURL(),localFolder); |
42 | 42 | long segmentBytes = 0; |
43 | 43 | double bps = bm.Measure(segmentBytes,startTime); |
44 | - if(bps < qualities.get(currentQuality).getQuality()) | |
44 | + if((bps < qualities.get(currentQuality).getQuality()) && (bps != -1)) | |
45 | 45 | { |
46 | 46 | currentQuality++; |
47 | 47 | break; | ... | ... |