mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
oss4: 8-bit PCM audio caps don't need an endianness field
This commit is contained in:
parent
4d658c188c
commit
719515126c
1 changed files with 5 additions and 3 deletions
|
@ -94,9 +94,11 @@ gst_oss4_append_format_to_caps (const GstOss4AudioFormat * fmt, GstCaps * caps)
|
||||||
|
|
||||||
s = gst_structure_empty_new (fmt->name);
|
s = gst_structure_empty_new (fmt->name);
|
||||||
if (fmt->width != 0 && fmt->depth != 0) {
|
if (fmt->width != 0 && fmt->depth != 0) {
|
||||||
gst_structure_set (s, "width", G_TYPE_INT, fmt->width,
|
gst_structure_set (s, "width", G_TYPE_INT, fmt->width, "depth", G_TYPE_INT,
|
||||||
"depth", G_TYPE_INT, fmt->depth, "endianness", G_TYPE_INT,
|
fmt->depth, "signed", G_TYPE_BOOLEAN, fmt->signedness, NULL);
|
||||||
fmt->endianness, "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);
|
gst_caps_append_structure (caps, s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue