module-rtp/stream: Add param_changed method

This method can be used to access the param_changed method of the
underlying pw_stream.

Also adds new public functions rtp_stream_set_param and
rtp_stream_update_params which plum things through to pw_stream_set_param
and pw_stream_update_params respectively.
This commit is contained in:
Christian Glombek 2023-10-09 07:21:17 +02:00
parent 9eba60a635
commit 35330cf461
2 changed files with 31 additions and 0 deletions

View file

@ -31,6 +31,8 @@ struct rtp_stream_events {
void (*state_changed) (void *data, bool started, const char *error);
void (*param_changed) (void *data, uint32_t id, const struct spa_pod *param);
void (*send_packet) (void *data, struct iovec *iov, size_t iovlen);
void (*send_feedback) (void *data, uint32_t senum);
@ -46,6 +48,11 @@ 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);
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,
const struct spa_pod **params,
uint32_t n_params);
#ifdef __cplusplus
}