mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
9eba60a635
commit
35330cf461
2 changed files with 31 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue