mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
pbutils: descriptions: Don't warn on MPEG-1 audio caps without layer field
While this is not ideal and won't give too accurate codec descriptions, it is what tsdemux produces. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6511>
This commit is contained in:
parent
a780b9ed13
commit
4b5a265571
1 changed files with 10 additions and 9 deletions
|
@ -742,7 +742,7 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
||||||
|
|
||||||
switch (ver) {
|
switch (ver) {
|
||||||
case 1:
|
case 1:
|
||||||
gst_structure_get_int (s, "layer", &layer);
|
if (gst_structure_get_int (s, "layer", &layer)) {
|
||||||
switch (layer) {
|
switch (layer) {
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -752,6 +752,7 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
GST_WARNING ("Unexpected MPEG-1 layer in %" GST_PTR_FORMAT, caps);
|
GST_WARNING ("Unexpected MPEG-1 layer in %" GST_PTR_FORMAT, caps);
|
||||||
|
}
|
||||||
return g_strdup ("MPEG-1 Audio");
|
return g_strdup ("MPEG-1 Audio");
|
||||||
case 2:
|
case 2:
|
||||||
return g_strdup ("MPEG-2 AAC");
|
return g_strdup ("MPEG-2 AAC");
|
||||||
|
|
Loading…
Reference in a new issue