提交 84ad6b56 编写于 作者: J jp9000

libobs: Improve output packet pruning debug message

Specifies whether packets were pruned or not
上级 674706ac
...@@ -994,14 +994,15 @@ static bool prune_interleaved_packets(struct obs_output *output) ...@@ -994,14 +994,15 @@ static bool prune_interleaved_packets(struct obs_output *output)
int prune_start = prune_premature_packets(output); int prune_start = prune_premature_packets(output);
#if DEBUG_STARTING_PACKETS == 1 #if DEBUG_STARTING_PACKETS == 1
blog(LOG_DEBUG, "--------- Pruning! ---------"); blog(LOG_DEBUG, "--------- Pruning! %d ---------", prune_start);
for (size_t i = 0; i < output->interleaved_packets.num; i++) { for (size_t i = 0; i < output->interleaved_packets.num; i++) {
struct encoder_packet *packet = struct encoder_packet *packet =
&output->interleaved_packets.array[i]; &output->interleaved_packets.array[i];
blog(LOG_DEBUG, "packet: %s %d, ts: %lld", blog(LOG_DEBUG, "packet: %s %d, ts: %lld, pruned = %s",
packet->type == OBS_ENCODER_AUDIO ? packet->type == OBS_ENCODER_AUDIO ?
"audio" : "video", (int)packet->track_idx, "audio" : "video", (int)packet->track_idx,
packet->dts_usec); packet->dts_usec,
(int)i < prune_start ? "true" : "false");
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册