obs-outputs: Only log packets remaining if above 0

master
jp9000 2015-11-17 07:49:05 -08:00
parent 226337a6ca
commit d4df6c191f
1 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,7 @@ static inline void free_packets(struct rtmp_stream *stream)
pthread_mutex_lock(&stream->packets_mutex); pthread_mutex_lock(&stream->packets_mutex);
num_packets = num_buffered_packets(stream); num_packets = num_buffered_packets(stream);
if (num_packets)
info("Freeing %d remaining packets", (int)num_packets); info("Freeing %d remaining packets", (int)num_packets);
while (stream->packets.size) { while (stream->packets.size) {