mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 09:21:03 +00:00
gst-libs/gst/audio/gstbaseaudiosrc.c
Original commit message from CVS: 2005-08-23 Andy Wingo <wingo@pobox.com> * gst-libs/gst/audio/gstbaseaudiosrc.c (gst_base_audio_src_fixate): Only fixate endianness if it is present in the caps.
This commit is contained in:
parent
1bbfa09389
commit
7afb104567
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-08-23 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst-libs/gst/audio/gstbaseaudiosrc.c
|
||||||
|
(gst_base_audio_src_fixate): Only fixate endianness if it is
|
||||||
|
present in the caps.
|
||||||
|
|
||||||
2005-08-22 Andy Wingo <wingo@pobox.com>
|
2005-08-22 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
* ext/alsa/gstalsasink.c (gst_alsasink_get_property):
|
* ext/alsa/gstalsasink.c (gst_alsasink_get_property):
|
||||||
|
|
|
@ -211,6 +211,7 @@ gst_base_audio_src_fixate (GstPad * pad, GstCaps * caps)
|
||||||
gst_caps_structure_fixate_field_nearest_int (s, "depth", 16);
|
gst_caps_structure_fixate_field_nearest_int (s, "depth", 16);
|
||||||
gst_caps_structure_fixate_field_nearest_int (s, "width", 16);
|
gst_caps_structure_fixate_field_nearest_int (s, "width", 16);
|
||||||
gst_structure_set (s, "signed", G_TYPE_BOOLEAN, TRUE, NULL);
|
gst_structure_set (s, "signed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
|
if (gst_structure_has_field (s, "endianness"))
|
||||||
gst_caps_structure_fixate_field_nearest_int (s, "endianness", G_BYTE_ORDER);
|
gst_caps_structure_fixate_field_nearest_int (s, "endianness", G_BYTE_ORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue