diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index a586ffd387..7b5d936ed2 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -185,11 +185,11 @@ gst_alaw_dec_getcaps (GstPad * pad, GstCaps * filter) if (pad == alawdec->sinkpad) { /* remove the fields we don't want */ - gst_structure_remove_fields (structure, "format", NULL); + gst_structure_remove_fields (structure, "format", "layout", NULL); } else { /* add fixed fields */ gst_structure_set (structure, "format", G_TYPE_STRING, - GST_AUDIO_NE (S16), NULL); + GST_AUDIO_NE (S16), "layout", G_TYPE_STRING, "interleaved", NULL); } } /* filter against the allowed caps of the pad to return our result */ diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index bc24538074..ba0d4f9400 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -126,11 +126,11 @@ mulawdec_getcaps (GstPad * pad, GstCaps * filter) if (pad == mulawdec->sinkpad) { /* remove the fields we don't want */ - gst_structure_remove_fields (structure, "format", NULL); + gst_structure_remove_fields (structure, "format", "layout", NULL); } else { /* add fixed fields */ gst_structure_set (structure, "format", G_TYPE_STRING, - GST_AUDIO_NE (S16), NULL); + GST_AUDIO_NE (S16), "layout", G_TYPE_STRING, "interleaved", NULL); } } /* filter against the allowed caps of the pad to return our result */