Skip to content

Commit

Permalink
Give more time in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vansante committed Apr 27, 2020
1 parent eaad339 commit a194d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://godoc.org/gopkg.in/vansante/go-ffprobe.v2
To get a quick the quick data on a video file:

```golang
ctx, cancelFn := context.WithTimeout(context.Background(), time.Second)
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()

data, err := ffprobe.ProbeURL(ctx, "/path/to/file.mp4")
Expand All @@ -35,7 +35,7 @@ command, but with an HTTP URL.
To get the data of a file you have an `io.Reader` for, use:

```golang
ctx, cancelFn := context.WithTimeout(context.Background(), time.Second)
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()

fileReader, err := os.Open("/path/to/file.mp4")
Expand Down
2 changes: 1 addition & 1 deletion example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
}
path := os.Args[1]

ctx, cancelFn := context.WithTimeout(context.Background(), time.Second)
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()

data, err := ffprobe.ProbeURL(ctx, path)
Expand Down

0 comments on commit a194d60

Please sign in to comment.