mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Cleanup end detection
This commit is contained in:
parent
345eabafb2
commit
5b27eab680
@ -191,7 +191,7 @@ func (ts *Stream) run(start int32) error {
|
||||
should_stop = true
|
||||
} else {
|
||||
close(ts.segments[segment])
|
||||
if int32(len(ts.segments)) == segment+1 {
|
||||
if segment == end-1 {
|
||||
// file finished, ffmped will finish soon on it's own
|
||||
should_stop = true
|
||||
} else if ts.isSegmentReady(segment + 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user