[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] bluetooth/gst: Correct var type for GST_TYPE_BITMASK
PulseAudio Marge Bot (@pulseaudio-merge-bot)
gitlab at gitlab.freedesktop.org
Fri Jun 17 19:15:23 UTC 2022
PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio
Commits:
dd4dc5e8 by Jan Palus at 2022-06-17T19:12:57+00:00
bluetooth/gst: Correct var type for GST_TYPE_BITMASK
GST_TYPE_BITMASK is 64-bit bit mask while corresponding channel_mask in
pulseaudio is int therefore usually 32-bit. Switch to uint64_t instead
to match internal representation in gstreamer.
Fixes pulseaudio crash on ARM 32-bit when pulseaudio is compiled with
gstreamer and either LDAC or aptX support is available.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/723>
- - - - -
1 changed file:
- src/modules/bluetooth/a2dp-codec-gst.c
Changes:
=====================================
src/modules/bluetooth/a2dp-codec-gst.c
=====================================
@@ -22,6 +22,7 @@
#endif
#include <arpa/inet.h>
+#include <stdint.h>
#include <pulsecore/log.h>
#include <pulsecore/macro.h>
@@ -82,7 +83,7 @@ fail:
static GstCaps *gst_create_caps_from_sample_spec(const pa_sample_spec *ss) {
gchar *sample_format;
GstCaps *caps;
- int channel_mask;
+ uint64_t channel_mask;
switch (ss->format) {
case PA_SAMPLE_S16LE:
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/dd4dc5e8bce2c03631c3613dbddee1a691bdd17d
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/dd4dc5e8bce2c03631c3613dbddee1a691bdd17d
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/20220617/6d8fa71a/attachment.htm>
More information about the pulseaudio-commits
mailing list