[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] rtp: Initialize SDP info struct field added for OPUS
PulseAudio Marge Bot (@pulseaudio-merge-bot)
gitlab at gitlab.freedesktop.org
Mon Jun 13 19:54:23 UTC 2022
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
d7a633df by Igor V. Kovalenko at 2022-06-13T19:51:37+00: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>
- - - - -
1 changed file:
- src/modules/rtp/sdp.c
Changes:
=====================================
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)) {
t += sizeof(PA_SDP_HEADER) - 1;
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/d7a633df899dda8738a30df318269e28c902e815
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/d7a633df899dda8738a30df318269e28c902e815
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20220613/45868fc2/attachment-0001.htm>
More information about the pulseaudio-commits
mailing list