mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
use log.Print instead of fmt.Print in examples
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/aler9/gortsplib"
|
||||
"github.com/aler9/gortsplib/pkg/base"
|
||||
@@ -73,7 +73,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
// decode AAC AUs from RTP packets
|
||||
// decode AAC AUs from the RTP packet
|
||||
aus, _, err := dec.Decode(&pkt)
|
||||
if err != nil {
|
||||
return
|
||||
@@ -81,7 +81,7 @@ func main() {
|
||||
|
||||
// print AUs
|
||||
for _, au := range aus {
|
||||
fmt.Printf("received AAC AU of size %d\n", len(au))
|
||||
log.Printf("received AAC AU of size %d\n", len(au))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user