protocol-native: compare uint64_t variable with (uint64_t) -1 instead of (size_t...
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2009 22:04:33 +0000 (00:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Aug 2009 22:04:33 +0000 (00:04 +0200)
src/pulsecore/protocol-native.c

index 6678d84..98ff407 100644 (file)
@@ -1289,7 +1289,8 @@ static void handle_seek(playback_stream *s, int64_t indexw) {
 
             pa_log_debug("Requesting rewind due to end of underrun.");
             pa_sink_input_request_rewind(s->sink_input,
-                                         (size_t) (s->sink_input->thread_info.underrun_for == (size_t) -1 ? 0 : s->sink_input->thread_info.underrun_for),
+                                         (size_t) (s->sink_input->thread_info.underrun_for == (uint64_t) -1 ? 0 :
+                                                   s->sink_input->thread_info.underrun_for),
                                          FALSE, TRUE, FALSE);
         }