mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	dmix plugin: drain - quickfix for the previous patch
This commit is contained in:
		
							parent
							
								
									fdc898d411
								
							
						
					
					
						commit
						e4377b1645
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -674,16 +674,16 @@ static int __snd_pcm_dmix_drain(snd_pcm_t *pcm)
 | 
				
			||||||
			case SND_PCM_STATE_SUSPENDED:
 | 
								case SND_PCM_STATE_SUSPENDED:
 | 
				
			||||||
				err = -ESTRPIPE;
 | 
									err = -ESTRPIPE;
 | 
				
			||||||
				goto done;
 | 
									goto done;
 | 
				
			||||||
			case SND_PCM_STATE_DRAINING:
 | 
					 | 
				
			||||||
				if (pcm->mode & SND_PCM_NONBLOCK) {
 | 
					 | 
				
			||||||
					err = -EAGAIN;
 | 
					 | 
				
			||||||
					goto done;
 | 
					 | 
				
			||||||
				}
 | 
					 | 
				
			||||||
				break;
 | 
					 | 
				
			||||||
			default:
 | 
								default:
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							if (pcm->mode & SND_PCM_NONBLOCK) {
 | 
				
			||||||
 | 
								if (dmix->state == SND_PCM_STATE_DRAINING) {
 | 
				
			||||||
 | 
									err = -EAGAIN;
 | 
				
			||||||
 | 
									goto done;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	} while (dmix->state == SND_PCM_STATE_DRAINING);
 | 
						} while (dmix->state == SND_PCM_STATE_DRAINING);
 | 
				
			||||||
done:
 | 
					done:
 | 
				
			||||||
	pcm->stop_threshold = stop_threshold;
 | 
						pcm->stop_threshold = stop_threshold;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue