mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	general: Very minor coding guideline fixes.
Fixes a few coding guideline violations: * Use of C99 comments * Opening brace on same line as function prototype ASTERISK-30163 #close Change-Id: I07771c4c89facd41ce8d323859f022ddbddf6ca7
This commit is contained in:
		
				
					committed by
					
						 Friendly Automation
						Friendly Automation
					
				
			
			
				
	
			
			
			
						parent
						
							8a8416e365
						
					
				
				
					commit
					e2e049e473
				
			| @@ -101,7 +101,7 @@ static int mp3play(const char *filename, unsigned int sampling_rate, int fd) | ||||
| 	/* Execute mpg123, but buffer if it's a net connection */ | ||||
| 	if (!strncasecmp(filename, "http://", 7) && strstr(filename, ".m3u")) { | ||||
| 	    char buffer_size_str[8]; | ||||
| 	    snprintf(buffer_size_str, 8, "%u", (int) 0.5*2*sampling_rate/1000); // 0.5 seconds for a live stream | ||||
| 	    snprintf(buffer_size_str, 8, "%u", (int) 0.5*2*sampling_rate/1000); /* 0.5 seconds for a live stream */ | ||||
| 		/* Most commonly installed in /usr/local/bin */ | ||||
| 	    execl(LOCAL_MPG_123, "mpg123", "-e", "s16", "-q", "-s", "-b", buffer_size_str, "-f", "8192", "--mono", "-r", sampling_rate_str, "-@", filename, (char *)NULL); | ||||
| 		/* But many places has it in /usr/bin */ | ||||
| @@ -111,7 +111,7 @@ static int mp3play(const char *filename, unsigned int sampling_rate, int fd) | ||||
| 	} | ||||
| 	else if (!strncasecmp(filename, "http://", 7)) { | ||||
| 	    char buffer_size_str[8]; | ||||
| 	    snprintf(buffer_size_str, 8, "%u", 6*2*sampling_rate/1000); // 6 seconds for a remote MP3 file | ||||
| 	    snprintf(buffer_size_str, 8, "%u", 6*2*sampling_rate/1000); /* 6 seconds for a remote MP3 file */ | ||||
| 		/* Most commonly installed in /usr/local/bin */ | ||||
| 	    execl(LOCAL_MPG_123, "mpg123", "-e", "s16", "-q", "-s", "-b", buffer_size_str, "-f", "8192", "--mono", "-r", sampling_rate_str, filename, (char *)NULL); | ||||
| 		/* But many places has it in /usr/bin */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user