mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
faac: also indicate mono audio in sink caps
This commit is contained in:
parent
e0494dcaa5
commit
f0668dfdd8
1 changed files with 7 additions and 8 deletions
|
@ -341,15 +341,14 @@ gst_faac_getcaps (GstAudioEncoder * enc, GstCaps * filter)
|
||||||
t = gst_structure_copy (s);
|
t = gst_structure_copy (s);
|
||||||
|
|
||||||
gst_structure_set (t, "channels", G_TYPE_INT, i, NULL);
|
gst_structure_set (t, "channels", G_TYPE_INT, i, NULL);
|
||||||
if (i == 1)
|
if (i > 1) {
|
||||||
continue;
|
|
||||||
|
|
||||||
for (c = 0; c < i; c++)
|
for (c = 0; c < i; c++)
|
||||||
channel_mask |=
|
channel_mask |=
|
||||||
G_GUINT64_CONSTANT (1) << aac_channel_positions[i - 1][c];
|
G_GUINT64_CONSTANT (1) << aac_channel_positions[i - 1][c];
|
||||||
|
|
||||||
gst_structure_set (t, "channel-mask", GST_TYPE_BITMASK, channel_mask,
|
gst_structure_set (t, "channel-mask", GST_TYPE_BITMASK, channel_mask,
|
||||||
NULL);
|
NULL);
|
||||||
|
}
|
||||||
gst_caps_append_structure (tmp, t);
|
gst_caps_append_structure (tmp, t);
|
||||||
}
|
}
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
|
|
Loading…
Reference in a new issue