mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -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
|
should_stop = true
|
||||||
} else {
|
} else {
|
||||||
close(ts.segments[segment])
|
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
|
// file finished, ffmped will finish soon on it's own
|
||||||
should_stop = true
|
should_stop = true
|
||||||
} else if ts.isSegmentReady(segment + 1) {
|
} else if ts.isSegmentReady(segment + 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user