mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	log: place more rate limit invocations
This commit is contained in:
		
							parent
							
								
									fd1266c666
								
							
						
					
					
						commit
						58d441f7ea
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -1292,6 +1292,7 @@ static void thread_func(void *userdata) {
 | 
				
			||||||
                     * we have filled the buffer at least once
 | 
					                     * we have filled the buffer at least once
 | 
				
			||||||
                     * completely.*/
 | 
					                     * completely.*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    if (pa_log_ratelimit())
 | 
				
			||||||
                        pa_log_debug("Cutting sleep time for the initial iterations by half.");
 | 
					                        pa_log_debug("Cutting sleep time for the initial iterations by half.");
 | 
				
			||||||
                    sleep_usec /= 2;
 | 
					                    sleep_usec /= 2;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1345,6 +1345,8 @@ static int sink_input_process_msg(pa_msgobject *o, int code, void *userdata, int
 | 
				
			||||||
/*             pa_log("sink input post: %lu %lli", (unsigned long) chunk->length, (long long) windex); */
 | 
					/*             pa_log("sink input post: %lu %lli", (unsigned long) chunk->length, (long long) windex); */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (pa_memblockq_push_align(s->memblockq, chunk) < 0) {
 | 
					            if (pa_memblockq_push_align(s->memblockq, chunk) < 0) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                if (pa_log_ratelimit())
 | 
				
			||||||
                    pa_log_warn("Failed to push data into queue");
 | 
					                    pa_log_warn("Failed to push data into queue");
 | 
				
			||||||
                pa_asyncmsgq_post(pa_thread_mq_get()->outq, PA_MSGOBJECT(s), PLAYBACK_STREAM_MESSAGE_OVERFLOW, NULL, 0, NULL, NULL);
 | 
					                pa_asyncmsgq_post(pa_thread_mq_get()->outq, PA_MSGOBJECT(s), PLAYBACK_STREAM_MESSAGE_OVERFLOW, NULL, 0, NULL, NULL);
 | 
				
			||||||
                pa_memblockq_seek(s->memblockq, (int64_t) chunk->length, PA_SEEK_RELATIVE, TRUE);
 | 
					                pa_memblockq_seek(s->memblockq, (int64_t) chunk->length, PA_SEEK_RELATIVE, TRUE);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue