From 89d935c9f66c606e07c2481ec4e0acd52d4dcddb Mon Sep 17 00:00:00 2001 From: Christian Glombek Date: Mon, 9 Oct 2023 07:22:32 +0200 Subject: [PATCH] module-rtp/stream: Add setter for property --- src/modules/module-rtp/stream.c | 7 +++++++ src/modules/module-rtp/stream.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/modules/module-rtp/stream.c b/src/modules/module-rtp/stream.c index 36996ea90..749f07b23 100644 --- a/src/modules/module-rtp/stream.c +++ b/src/modules/module-rtp/stream.c @@ -550,6 +550,13 @@ uint16_t rtp_stream_get_seq(struct rtp_stream *s) return impl->seq; } +void rtp_stream_set_first(struct rtp_stream *s) +{ + struct impl *impl = (struct impl*)s; + + impl->first = true; +} + int rtp_stream_set_param(struct rtp_stream *s, uint32_t id, const struct spa_pod *param) { struct impl *impl = (struct impl*)s; diff --git a/src/modules/module-rtp/stream.h b/src/modules/module-rtp/stream.h index bfc126616..9be5c0d84 100644 --- a/src/modules/module-rtp/stream.h +++ b/src/modules/module-rtp/stream.h @@ -50,6 +50,8 @@ uint64_t rtp_stream_get_time(struct rtp_stream *s, uint64_t *rate); uint16_t rtp_stream_get_seq(struct rtp_stream *s); +void rtp_stream_set_first(struct rtp_stream *s); + 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,