mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-rtp/stream: Add getter for pw_stream state
This commit is contained in:
parent
89d935c9f6
commit
8704aaa044
2 changed files with 9 additions and 0 deletions
|
|
@ -557,6 +557,13 @@ void rtp_stream_set_first(struct rtp_stream *s)
|
||||||
impl->first = true;
|
impl->first = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum pw_stream_state rtp_stream_get_state(struct rtp_stream *s, const char **error)
|
||||||
|
{
|
||||||
|
struct impl *impl = (struct impl*)s;
|
||||||
|
|
||||||
|
return pw_stream_get_state(impl->stream, error);
|
||||||
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ uint16_t rtp_stream_get_seq(struct rtp_stream *s);
|
||||||
|
|
||||||
void rtp_stream_set_first(struct rtp_stream *s);
|
void rtp_stream_set_first(struct rtp_stream *s);
|
||||||
|
|
||||||
|
enum pw_stream_state rtp_stream_get_state(struct rtp_stream *s, const char **error);
|
||||||
|
|
||||||
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