mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-rtp/stream: Add getter for property
This commit is contained in:
		
							parent
							
								
									35330cf461
								
							
						
					
					
						commit
						1200bd7d20
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -543,6 +543,13 @@ uint64_t rtp_stream_get_time(struct rtp_stream *s, uint64_t *rate)
 | 
				
			||||||
		pos->clock.rate.num / pos->clock.rate.denom;
 | 
							pos->clock.rate.num / pos->clock.rate.denom;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uint16_t rtp_stream_get_seq(struct rtp_stream *s)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						struct impl *impl = (struct impl*)s;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return impl->seq;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int rtp_stream_set_param(struct rtp_stream *s, uint32_t id, const struct spa_pod *param)
 | 
					int rtp_stream_set_param(struct rtp_stream *s, uint32_t id, const struct spa_pod *param)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct impl *impl = (struct impl*)s;
 | 
						struct impl *impl = (struct impl*)s;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,6 +48,8 @@ int rtp_stream_receive_packet(struct rtp_stream *s, uint8_t *buffer, size_t len)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint64_t rtp_stream_get_time(struct rtp_stream *s, uint64_t *rate);
 | 
					uint64_t rtp_stream_get_time(struct rtp_stream *s, uint64_t *rate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uint16_t rtp_stream_get_seq(struct rtp_stream *s);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int rtp_stream_set_param(struct rtp_stream *s, uint32_t id, const struct spa_pod *param);
 | 
					int rtp_stream_set_param(struct rtp_stream *s, uint32_t id, const struct spa_pod *param);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int rtp_stream_update_params(struct rtp_stream *stream,
 | 
					int rtp_stream_update_params(struct rtp_stream *stream,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue