mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
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:
parent
59186f970d
commit
b19b914d3a
2 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue