mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 09:50:39 +00:00
gst/audioconvert/gstaudioconvert.c: We don't support 64 bit integer audio, so don't try to claim we can.
Original commit message from CVS: * gst/audioconvert/gstaudioconvert.c: (make_lossless_changes), (gst_audio_convert_transform_caps): We don't support 64 bit integer audio, so don't try to claim we can. Stops us producing caps don't match our template caps. Update comments.
This commit is contained in:
parent
4ab2d699fd
commit
5759241eb4
|
@ -1,3 +1,11 @@
|
||||||
|
2007-03-16 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
* gst/audioconvert/gstaudioconvert.c: (make_lossless_changes),
|
||||||
|
(gst_audio_convert_transform_caps):
|
||||||
|
We don't support 64 bit integer audio, so don't try to claim we can.
|
||||||
|
Stops us producing caps don't match our template caps.
|
||||||
|
Update comments.
|
||||||
|
|
||||||
2007-03-15 Michael Smith <msmith@fluendo.com>
|
2007-03-15 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* gst/audioresample/gstaudioresample.c:
|
* gst/audioresample/gstaudioresample.c:
|
||||||
|
|
|
@ -413,6 +413,8 @@ make_lossless_changes (GstStructure * s, gboolean isfloat)
|
||||||
gst_structure_set_value (s, "signed", &list);
|
gst_structure_set_value (s, "signed", &list);
|
||||||
g_value_unset (&val);
|
g_value_unset (&val);
|
||||||
g_value_unset (&list);
|
g_value_unset (&list);
|
||||||
|
/* We don't handle 64 bit integer audio, so we set the width here as well */
|
||||||
|
gst_structure_set (s, "width", G_TYPE_INT, 32, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
|
@ -522,10 +524,9 @@ gst_audio_convert_transform_caps (GstBaseTransform * base,
|
||||||
/* Same, plus a float<->int conversion */
|
/* Same, plus a float<->int conversion */
|
||||||
append_with_other_format (ret, s, isfloat);
|
append_with_other_format (ret, s, isfloat);
|
||||||
|
|
||||||
/* We'll reduce depth if we must... only for integer, since we can't do this
|
/* We'll reduce depth if we must. We reduce as low as 16 bits (for integer);
|
||||||
* for float. We reduce as low as 16 bits; reducing to less than this is
|
* reducing to less than this is even worse than dropping channels. We only
|
||||||
* even worse than dropping channels. We only do this if we haven't already
|
* do this if we haven't already done the equivalent above. */
|
||||||
* done the equivalent above. */
|
|
||||||
if (!gst_structure_get_int (structure, "width", &width) || width > 16) {
|
if (!gst_structure_get_int (structure, "width", &width) || width > 16) {
|
||||||
if (isfloat) {
|
if (isfloat) {
|
||||||
GstStructure *s2 = gst_structure_copy (s);
|
GstStructure *s2 = gst_structure_copy (s);
|
||||||
|
@ -564,6 +565,8 @@ gst_audio_convert_transform_caps (GstBaseTransform * base,
|
||||||
} else
|
} else
|
||||||
gst_caps_append_structure (ret, s);
|
gst_caps_append_structure (ret, s);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (base, "Caps transformed to % " GST_PTR_FORMAT, ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue