jack: initialize local variable "space"
Fix a gcc warning, initialize the "space" variable at the beginning of mpd_jack_play().
This commit is contained in:
		@@ -392,7 +392,7 @@ mpd_jack_play(void *data, const void *chunk, size_t size)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	struct jack_data *jd = data;
 | 
						struct jack_data *jd = data;
 | 
				
			||||||
	const size_t frame_size = audio_format_frame_size(&jd->audio_format);
 | 
						const size_t frame_size = audio_format_frame_size(&jd->audio_format);
 | 
				
			||||||
	size_t space, space1;
 | 
						size_t space = 0, space1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (jd->shutdown) {
 | 
						if (jd->shutdown) {
 | 
				
			||||||
		g_warning("Refusing to play, because there is no client thread.");
 | 
							g_warning("Refusing to play, because there is no client thread.");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user