Skip to content

Commit

Permalink
Updated main
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Feb 11, 2018
1 parent 91cf2d7 commit b823575
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions astits/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"net/url"
"os"
"os/signal"
"strconv"
"strings"
"syscall"

Expand Down Expand Up @@ -237,14 +236,10 @@ func programs(dmx *astits.Demuxer) (o []*Program, err error) {
// Get next data
if d, err = dmx.NextData(); err != nil {
if err == astits.ErrNoMorePackets {
var pgmsNotProcessed []string
for n := range pgms {
pgmsNotProcessed = append(pgmsNotProcessed, strconv.Itoa(int(n)))
}
err = fmt.Errorf("astits: no PMT found for program(s) %s", strings.Join(pgmsNotProcessed, ", "))
} else {
err = errors.Wrap(err, "astits: getting next data failed")
err = nil
break
}
err = errors.Wrap(err, "astits: getting next data failed")
return
}

Expand Down

0 comments on commit b823575

Please sign in to comment.