Skip to content

Commit 9014975

Browse files
Removed duplicated code block in gpu_encode_thread
1 parent cda4ff0 commit 9014975

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

libobs/obs-video-gpu-encode.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -184,25 +184,6 @@ static void *gpu_encode_thread(void *data)
184184
ept->fer = fer_ts;
185185
}
186186

187-
/* Generate and enqueue the frame timing metrics, namely
188-
* the CTS (composition time), FER (frame encode request), FERC
189-
* (frame encode request complete) and current PTS. PTS is used to
190-
* associate the frame timing data with the encode packet. */
191-
if (tf.timestamp) {
192-
struct encoder_packet_time *ept = da_push_back_new(encoder->encoder_packet_times);
193-
// Get the frame encode request complete timestamp
194-
if (success) {
195-
ept->ferc = os_gettime_ns();
196-
} else {
197-
// Encode had error, set ferc to 0
198-
ept->ferc = 0;
199-
}
200-
201-
ept->pts = encoder->cur_pts;
202-
ept->cts = tf.timestamp;
203-
ept->fer = fer_ts;
204-
}
205-
206187
send_off_encoder_packet(encoder, success, received, &pkt);
207188

208189
lock_key = next_key;

0 commit comments

Comments
 (0)