Skip to content

Commit

Permalink
unused array
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed May 13, 2024
1 parent 2019d5a commit fd2a64a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/pipeline/builder/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@ func (b *VideoBin) addEncoder() error {

if b.conf.GetStreamConfig() != nil && b.conf.Debug.LogKeyFrames {
var firstKeyFrame *time.Duration
var keyframes []time.Duration
x264Enc.GetStaticPad("src").AddProbe(gst.PadProbeTypeBuffer, func(pad *gst.Pad, info *gst.PadProbeInfo) gst.PadProbeReturn {
buffer := info.GetBuffer()
if !buffer.HasFlags(gst.BufferFlagDeltaUnit) {
Expand All @@ -593,7 +592,6 @@ func (b *VideoBin) addEncoder() error {
firstKeyFrame = clockTime
}
pts := *clockTime - *firstKeyFrame
keyframes = append(keyframes, pts)
logger.Debugw("keyframe generated", "pts", pts)
if pts > time.Second*15 {
return gst.PadProbeRemove
Expand Down

0 comments on commit fd2a64a

Please sign in to comment.