Merge pull request #17 from go-gst/remove_time_duration

change more time.Durations to gst.ClockTime
This commit is contained in:
Wilhelm Bartel
2023-08-28 22:46:36 +02:00
committed by GitHub
29 changed files with 125 additions and 136 deletions

View File

@@ -76,7 +76,7 @@ func createPipeline() (*gst.Pipeline, error) {
// For each frame we produce, we set the timestamp when it should be displayed
// The autovideosink will use this information to display the frame at the right time.
buffer.SetPresentationTimestamp(time.Duration(i) * 500 * time.Millisecond)
buffer.SetPresentationTimestamp(gst.ClockTime(time.Duration(i) * 500 * time.Millisecond))
// Produce an image frame for this iteration.
pixels := produceImageFrame(palette[i])