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:
Thomas Roos 2015-01-21 08:33:57 +01:00 committed by Sebastian Dröge
parent 564f001aa8
commit 485ad66a11

View file

@ -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);