gst/audioconvert/gstaudioconvert.c: Float caps shouldn't have a "signed" field.

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c: (make_lossless_changes):
Float caps shouldn't have a "signed" field.
This commit is contained in:
Tim-Philipp Müller 2006-08-10 13:01:31 +00:00
parent cf602c2379
commit 8a223b920d
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-08-10 Tim-Philipp Müller <tim at centricular dot net>
* gst/audioconvert/gstaudioconvert.c: (make_lossless_changes):
Float caps shouldn't have a "signed" field.
2006-08-10 Tim-Philipp Müller <tim at centricular dot net>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_src_query):

View file

@ -324,9 +324,10 @@ static GstStructure *
make_lossless_changes (GstStructure * s, gboolean isfloat)
{
if (isfloat) {
/* float doesn't have depth, and only supports width 32, and native-endian
*/
/* float doesn't have a depth or signedness field and only supports a
* width of 32 and native endianness */
gst_structure_remove_field (s, "depth");
gst_structure_remove_field (s, "signed");
gst_structure_set (s, "width", G_TYPE_INT, 32, NULL);
gst_structure_set (s, "endianness", G_TYPE_INT, G_BYTE_ORDER, NULL);
} else {