mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
alsa: Allow to use 8 bit samples with ALSA
8 bit samples have no (0) as endianness, not the native endianness. https://bugzilla.gnome.org/show_bug.cgi?id=739446
This commit is contained in:
parent
564f001aa8
commit
485ad66a11
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ format_supported (const GValue * format_val, snd_pcm_format_mask_t * mask,
|
|||
|
||||
finfo = gst_audio_format_get_info (format);
|
||||
|
||||
if (GST_AUDIO_FORMAT_INFO_ENDIANNESS (finfo) != endianness)
|
||||
if (GST_AUDIO_FORMAT_INFO_ENDIANNESS (finfo) != endianness
|
||||
&& GST_AUDIO_FORMAT_INFO_ENDIANNESS (finfo) != 0)
|
||||
return FALSE;
|
||||
|
||||
pcm_format = gst_alsa_get_pcm_format (format);
|
||||
|
|
Loading…
Reference in a new issue