mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Update src/modules/module-raop-sink.c
This commit is contained in:
		
							parent
							
								
									0c494c5469
								
							
						
					
					
						commit
						5fc69f3ec7
					
				
					 1 changed files with 7 additions and 9 deletions
				
			
		| 
						 | 
					@ -760,8 +760,8 @@ static void rtsp_record_reply(void *data, int status, const struct spa_dict *hea
 | 
				
			||||||
	uint8_t buffer[1024];
 | 
						uint8_t buffer[1024];
 | 
				
			||||||
	struct spa_pod_builder b;
 | 
						struct spa_pod_builder b;
 | 
				
			||||||
	struct spa_latency_info latency;
 | 
						struct spa_latency_info latency;
 | 
				
			||||||
 	int res;
 | 
						int res;
 | 
				
			||||||
    	char *progress;
 | 
						char *progress;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info("reply %d", status);
 | 
						pw_log_info("reply %d", status);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -787,8 +787,8 @@ static void rtsp_record_reply(void *data, int status, const struct spa_dict *hea
 | 
				
			||||||
	impl->sync_period = impl->info.rate / (impl->block_size / impl->frame_size);
 | 
						impl->sync_period = impl->info.rate / (impl->block_size / impl->frame_size);
 | 
				
			||||||
	impl->recording = true;
 | 
						impl->recording = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    	asprintf(&progress,"progress: %s/%s/%s\r\n", "0","0","0");
 | 
						asprintf(&progress,"progress: %s/%s/%s\r\n", "0","0","0");
 | 
				
			||||||
    	res = pw_rtsp_client_send(impl->rtsp, "SET_PARAMETER", NULL,
 | 
						res = pw_rtsp_client_send(impl->rtsp, "SET_PARAMETER", NULL,
 | 
				
			||||||
			"text/parameters", progress, NULL, NULL);
 | 
								"text/parameters", progress, NULL, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -1068,7 +1068,8 @@ static int rtsp_do_announce(struct impl *impl)
 | 
				
			||||||
	int res, frames, i, ip_version;
 | 
						int res, frames, i, ip_version;
 | 
				
			||||||
	char *sdp;
 | 
						char *sdp;
 | 
				
			||||||
	char local_ip[256];
 | 
						char local_ip[256];
 | 
				
			||||||
 | 
						int min_latency;
 | 
				
			||||||
 | 
						min_latency = DEFAULT_LATENCY;
 | 
				
			||||||
	host = pw_properties_get(impl->props, "raop.hostname");
 | 
						host = pw_properties_get(impl->props, "raop.hostname");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (impl->protocol == PROTO_TCP)
 | 
						if (impl->protocol == PROTO_TCP)
 | 
				
			||||||
| 
						 | 
					@ -1094,8 +1095,7 @@ static int rtsp_do_announce(struct impl *impl)
 | 
				
			||||||
				impl->session_id, ip_version, local_ip,
 | 
									impl->session_id, ip_version, local_ip,
 | 
				
			||||||
				ip_version, host, frames);
 | 
									ip_version, host, frames);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
       case CRYPTO_AUTH_SETUP:
 | 
						case CRYPTO_AUTH_SETUP:
 | 
				
			||||||
		int min_latency = DEFAULT_LATENCY;
 | 
					 | 
				
			||||||
		asprintf(&sdp, "v=0\r\n"
 | 
							asprintf(&sdp, "v=0\r\n"
 | 
				
			||||||
				"o=iTunes %s 0 IN IP%d %s\r\n"
 | 
									"o=iTunes %s 0 IN IP%d %s\r\n"
 | 
				
			||||||
				"s=iTunes\r\n"
 | 
									"s=iTunes\r\n"
 | 
				
			||||||
| 
						 | 
					@ -1147,8 +1147,6 @@ static void rtsp_auth_setup_reply(void *data, int status, const struct spa_dict
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_log_info("reply %d", status);
 | 
						pw_log_info("reply %d", status);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	rtsp_do_announce(impl);
 | 
						rtsp_do_announce(impl);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue