mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	MIDI event decoder: prevent running status after sysex
Running status cannot be using in the command immediately following a system exclusive command, so we have to reset the running status state in that case. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
		
							parent
							
								
									e94f3cfdf9
								
							
						
					
					
						commit
						cbf395d692
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -442,6 +442,7 @@ long snd_midi_event_decode(snd_midi_event_t *dev, unsigned char *buf, long count
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (cmd == MIDI_CMD_COMMON_SYSEX) {
 | 
						if (cmd == MIDI_CMD_COMMON_SYSEX) {
 | 
				
			||||||
 | 
							snd_midi_event_reset_decode(dev);
 | 
				
			||||||
		qlen = ev->data.ext.len;
 | 
							qlen = ev->data.ext.len;
 | 
				
			||||||
		if (count < qlen)
 | 
							if (count < qlen)
 | 
				
			||||||
			return -ENOMEM;
 | 
								return -ENOMEM;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue