Commit a6d89f51 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/audioconvert/gstaudioconvert.c: Convert me to BaseTransform!! help..

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_link_src):
Convert me to BaseTransform!! help..
parent 708deec5
2005-07-29 Wim Taymans <wim@fluendo.com>
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_link_src):
Convert me to BaseTransform!! help..
2005-07-29 Andy Wingo <wingo@pobox.com>
 
* ext/alsa/gstalsaplugin.c (plugin_init): We are primary audio
......
......@@ -431,6 +431,10 @@ gst_audio_convert_link_src (GstAudioConvert * this,
"rate", G_TYPE_INT, sink_ac_caps->rate,
"channels", G_TYPE_INT, sink_ac_caps->channels, NULL);
/* if there is a choice, prefer no conversion */
gst_caps_structure_fixate_field_nearest_int (structure,
"endianness", sink_ac_caps->endianness);
if (strcmp (gst_structure_get_name (structure), "audio/x-raw-float") == 0) {
if (!sink_ac_caps->is_int) {
/* copy over */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment