mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: Only set the 'first' flag to false when we actually call snd_pcm_start()
Previously, if work_done was false, we could conceivably not call snd_pcm_start().
This commit is contained in:
		
							parent
							
								
									28f4aebfbf
								
							
						
					
					
						commit
						eef247b57e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1420,6 +1420,8 @@ static void thread_func(void *userdata) {
 | 
				
			||||||
                    snd_pcm_start(u->pcm_handle);
 | 
					                    snd_pcm_start(u->pcm_handle);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    pa_smoother_resume(u->smoother, pa_rtclock_now(), TRUE);
 | 
					                    pa_smoother_resume(u->smoother, pa_rtclock_now(), TRUE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    u->first = FALSE;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                update_smoother(u);
 | 
					                update_smoother(u);
 | 
				
			||||||
| 
						 | 
					@ -1457,7 +1459,6 @@ static void thread_func(void *userdata) {
 | 
				
			||||||
                pa_rtpoll_set_timer_relative(u->rtpoll, PA_MIN(sleep_usec, cusec));
 | 
					                pa_rtpoll_set_timer_relative(u->rtpoll, PA_MIN(sleep_usec, cusec));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            u->first = FALSE;
 | 
					 | 
				
			||||||
            u->after_rewind = FALSE;
 | 
					            u->after_rewind = FALSE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else if (u->use_tsched)
 | 
					        } else if (u->use_tsched)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue