diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2022-06-13 21:38:08 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2022-06-20 14:01:56 +0300 |
commit | ca8c5242eb1d8efc7d09a7174eeb6f3a8417b0fe (patch) | |
tree | 790d1244b91f90f817d4e19fc59131866de0f07d | |
parent | 437cfe4630778c9b00cab168d678d17f74577baa (diff) | |
download | pulseaudio-ca8c5242eb1d8efc7d09a7174eeb6f3a8417b0fe.tar.gz |
rtp: Initialize SDP info struct field added for OPUS
Turned out that pa_sdp_info::enable_opus is never initialized, which seldom
makes module-rtp-recv believe it will be playing OPUS-encoded stream even though
discovered SDP record does not indicate OPUS codec in metadata.
Fix this by adding missing initializer.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/720>
-rw-r--r-- | src/modules/rtp/sdp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/rtp/sdp.c b/src/modules/rtp/sdp.c index e130509df..c3203ba62 100644 --- a/src/modules/rtp/sdp.c +++ b/src/modules/rtp/sdp.c @@ -129,6 +129,7 @@ pa_sdp_info *pa_sdp_parse(const char *t, pa_sdp_info *i, int is_goodbye) { i->origin = i->session_name = NULL; i->salen = 0; i->payload = 255; + i->enable_opus = false; if (!pa_startswith(t, PA_SDP_HEADER)) { pa_log("Failed to parse SDP data: invalid header."); |