summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatej Knopp <matej.knopp@gmail.com>2018-09-29 10:39:46 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2018-10-05 15:40:13 +0300
commit18f082a0d8db9626f233b142d8615a6929cf5224 (patch)
tree70949c5a8586a08cb22556edd231c680da05602a
parenta164d868046ba6f3e1659b3fab431c5e8de19926 (diff)
downloadgst-plugins-base-18f082a0d8db9626f233b142d8615a6929cf5224.tar.gz
gst-plugins-base-18f082a0d8db9626f233b142d8615a6929cf5224.tar.xz
audioconvert: remove layout from structure when fixating caps
otherwise caps intersection always fails when converting non-interleaved to interleaved audio https://bugzilla.gnome.org/show_bug.cgi?id=797225
-rw-r--r--gst/audioconvert/gstaudioconvert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c
index e93ddf431..b2d82611e 100644
--- a/gst/audioconvert/gstaudioconvert.c
+++ b/gst/audioconvert/gstaudioconvert.c
@@ -702,6 +702,7 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
if (result)
gst_caps_unref (result);
gst_caps_map_in_place (removed, remove_format_from_structure, NULL);
+ gst_caps_map_in_place (removed, remove_layout_from_structure, NULL);
result = gst_caps_intersect (othercaps, removed);
gst_caps_unref (removed);
if (gst_caps_is_empty (result)) {