diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-04-08 10:45:33 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-05-11 19:02:55 +0100 |
commit | 719515126c454338a4735b4b2bb7dfdf728a7b22 (patch) | |
tree | be941f5e703248056b1a2be90718acbbeb804e4a /sys | |
parent | 4d658c188cd0362f00f13ee2ae42af4ce69e91a4 (diff) |
oss4: 8-bit PCM audio caps don't need an endianness field
Diffstat (limited to 'sys')
-rw-r--r-- | sys/oss4/oss4-audio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/oss4/oss4-audio.c b/sys/oss4/oss4-audio.c index d501d266c..09f849596 100644 --- a/sys/oss4/oss4-audio.c +++ b/sys/oss4/oss4-audio.c @@ -94,9 +94,11 @@ gst_oss4_append_format_to_caps (const GstOss4AudioFormat * fmt, GstCaps * caps) s = gst_structure_empty_new (fmt->name); if (fmt->width != 0 && fmt->depth != 0) { - gst_structure_set (s, "width", G_TYPE_INT, fmt->width, - "depth", G_TYPE_INT, fmt->depth, "endianness", G_TYPE_INT, - fmt->endianness, "signed", G_TYPE_BOOLEAN, fmt->signedness, NULL); + gst_structure_set (s, "width", G_TYPE_INT, fmt->width, "depth", G_TYPE_INT, + fmt->depth, "signed", G_TYPE_BOOLEAN, fmt->signedness, NULL); + } + if (fmt->endianness != 0) { + gst_structure_set (s, "endianness", G_TYPE_INT, fmt->endianness, NULL); } gst_caps_append_structure (caps, s); } |