law: Filter layout caps field

The layout caps field shouldn't be passed through to the sink pad
of {mu,a}lawdec.

https://bugzilla.gnome.org/show_bug.cgi?id=681677
This commit is contained in:
Sjoerd Simons 2012-08-12 13:16:32 +02:00
parent 59186f970d
commit b19b914d3a
2 changed files with 4 additions and 4 deletions

View file

@ -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 */

View file

@ -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 */