include stream index and packet queue size in debug message

pull/2714/head^2
Isaac Connor 2019-10-11 13:53:18 -04:00
parent 70396c5897
commit 3b586a2abe
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ bool zm_packetqueue::queuePacket(ZMPacket* zm_packet) {
||
( packet_counts[zm_packet->packet.stream_index] <= 0 )
) {
Debug(2,"Inserting packet with dts %" PRId64 " because queue is empty or invalid dts", zm_packet->packet.dts);
Debug(2,"Inserting packet with dts %" PRId64 " because queue %d is empty (queue size: %d) or invalid dts",
zm_packet->packet.stream_index, packet_counts[zm_packet->packet.stream_index], zm_packet->packet.dts);
// No dts value, can't so much with it
pktQueue.push_back(zm_packet);
packet_counts[zm_packet->packet.stream_index] += 1;