mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
qtmux: Don't require endianness field for 8 bit raw audio
Fixes bug #590360.
This commit is contained in:
parent
de03453f6d
commit
5a596e67da
1 changed files with 10 additions and 4 deletions
|
@ -1553,10 +1553,16 @@ gst_qt_mux_audio_sink_set_caps (GstPad * pad, GstCaps * caps)
|
||||||
|
|
||||||
if (!gst_structure_get_int (structure, "width", &width) ||
|
if (!gst_structure_get_int (structure, "width", &width) ||
|
||||||
!gst_structure_get_int (structure, "depth", &depth) ||
|
!gst_structure_get_int (structure, "depth", &depth) ||
|
||||||
!gst_structure_get_boolean (structure, "signed", &sign) ||
|
!gst_structure_get_boolean (structure, "signed", &sign)) {
|
||||||
!gst_structure_get_int (structure, "endianness", &endianness)) {
|
GST_DEBUG_OBJECT (qtmux, "broken caps, width/depth/signed field missing");
|
||||||
GST_DEBUG_OBJECT (qtmux,
|
goto refuse_caps;
|
||||||
"broken caps, width/depth/signed/endianness field missing");
|
}
|
||||||
|
|
||||||
|
if (depth <= 8) {
|
||||||
|
endianness = G_BYTE_ORDER;
|
||||||
|
} else if (!gst_structure_get_boolean (structure,
|
||||||
|
"endianness", &endianness)) {
|
||||||
|
GST_DEBUG_OBJECT (qtmux, "broken caps, endianness field missing");
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue