Skip to content

Commit 6f53110

Browse files
committed
handle multiple trains in one input video
1 parent 0464aca commit 6f53110

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

internal/pkg/stitch/stitch.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,11 @@ func createH264(seq sequence, dest_dir string) (*TrainClip, error) {
305305
log.Debug().Str("msg", msg.String()).Msg("gstreamer message")
306306
switch msg.Type() {
307307
case gst.MessageEOS:
308-
//time.Sleep(5 * time.Second)
309-
//pipeline.SetState(gst.StateNull)
310-
//time.Sleep(5 * time.Second)
311-
//mainLoop.Quit()
312-
//time.Sleep(5 * time.Second)
313-
//return false
308+
pipeline.SetState(gst.StateNull)
309+
mainLoop.Quit()
310+
return false
314311
}
312+
// FIXME: abort on gstreamer errors
315313
//if err := handleMessage(msg); err != nil {
316314
// fmt.Println(err)
317315
// loop.Quit()

0 commit comments

Comments
 (0)