obs-outputs: Only log packets remaining if above 0
parent
226337a6ca
commit
d4df6c191f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue