mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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>
This commit is contained in:
parent
a8a2a31408
commit
d7a633df89
1 changed files with 1 additions and 0 deletions
|
|
@ -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)) {
|
||||
t += sizeof(PA_SDP_HEADER) - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue