]> git.sesse.net Git - nageru/commitdiff
Fix a compiler warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 10 Feb 2017 23:51:22 +0000 (00:51 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 10 Feb 2017 23:51:22 +0000 (00:51 +0100)
mixer.cpp

index c7a4659c8a66a486a85345310f897cdf49e601c4..1d283e374041ea16da2c880da0584ef5fa614461 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -81,7 +81,7 @@ void insert_new_frame(RefCountedFrame frame, unsigned field_num, bool interlaced
 void QueueLengthPolicy::update_policy(unsigned queue_length)
 {
        if (queue_length == 0) {  // Starvation.
-               if (been_at_safe_point_since_last_starvation && safe_queue_length < global_flags.max_input_queue_frames) {
+               if (been_at_safe_point_since_last_starvation && safe_queue_length < unsigned(global_flags.max_input_queue_frames)) {
                        ++safe_queue_length;
                        fprintf(stderr, "Card %u: Starvation, increasing safe limit to %u frame(s)\n",
                                card_index, safe_queue_length);