gstreamer/subprojects/gst-plugins-bad/ext/srtp
Michael Olbrich fe6b76c64e srtpdec: fix "srtp-key" check
The original code was:

if (!gst_structure_get (s, "srtp-key", GST_TYPE_BUFFER, &buf, NULL) || !buf) {
  goto error;
} else {
  stream->key = buf;
}

So use "srtp-key" if it is set so a non NULL buffer. The condition was
incorrectly inverted in ad7ffe64a6 to:

if (gst_structure_get (s, "srtp-key", GST_TYPE_BUFFER, &buf, NULL) || !buf) {
  stream->key = buf;
} ...

Fix the condition so it works as originally intended and avoid accessing
'buf' uninitialised.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4401>
2023-04-12 18:16:21 +00:00
..
gstsrtp.c srtp: drop use of GSlice 2023-01-24 15:25:07 +00:00
gstsrtp.h
gstsrtpdec.c srtpdec: fix "srtp-key" check 2023-04-12 18:16:21 +00:00
gstsrtpdec.h srtpdec: add counts in stats 2022-04-25 13:57:42 +00:00
gstsrtpelement.c
gstsrtpelements.h
gstsrtpenc.c
gstsrtpenc.h
gstsrtpenums.h
gstsrtpplugin.c
meson.build meson: Add a wrap file for libsrt2p 2023-01-25 11:38:52 +00:00