mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Added missing reference to stream in snd_rawmidi_stream_flush
This commit is contained in:
		
							parent
							
								
									b60673fe68
								
							
						
					
					
						commit
						7d01263a06
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -171,7 +171,7 @@ int snd_rawmidi_stream_flush(snd_rawmidi_t *rmidi, int str)
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
	if (str < 0 || str > 1)
 | 
						if (str < 0 || str > 1)
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
	if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH) < 0)
 | 
						if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH, &str) < 0)
 | 
				
			||||||
		return -errno;
 | 
							return -errno;
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue