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:
Andy Wingo 2005-08-23 13:29:17 +00:00
parent 1bbfa09389
commit 7afb104567
2 changed files with 8 additions and 1 deletions

View file

@ -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>
* ext/alsa/gstalsasink.c (gst_alsasink_get_property):

View file

@ -211,7 +211,8 @@ 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, "width", 16);
gst_structure_set (s, "signed", G_TYPE_BOOLEAN, TRUE, NULL);
gst_caps_structure_fixate_field_nearest_int (s, "endianness", G_BYTE_ORDER);
if (gst_structure_has_field (s, "endianness"))
gst_caps_structure_fixate_field_nearest_int (s, "endianness", G_BYTE_ORDER);
}
static gboolean