Skip to content

Commit c95e2ba

Browse files
committed
fixed broken code
1 parent 30d69c0 commit c95e2ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/dash/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func main() {
1414
opts := packlit.NewFlags(packlit.WithMpdOutput("h264.mpd"))
15-
runner := packlit.NewBuilder().
15+
packager := packlit.NewBuilder().
1616
WithStream(
1717
packlit.NewStreamBuilder().
1818
WithInput("h264_baseline_360p_600.mp4").
@@ -44,7 +44,8 @@ func main() {
4444
WithFlag(opts).
4545
Build()
4646

47-
if err := runner.Run(); err != nil {
47+
packagerExecutor := packlit.NewExecutor(packager)
48+
if err := packagerExecutor.Run(); err != nil {
4849
log.Fatalf("error when running shaka-packager: %v", err)
4950
}
5051
}

0 commit comments

Comments
 (0)