validate: Fix media descriptor mp3 like formats

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/216>
This commit is contained in:
Thibault Saunier 2020-07-25 13:57:01 -04:00 committed by GStreamer Merge Bot
parent 56b745f4f8
commit bab10bd05f

View file

@ -723,7 +723,16 @@ gst_validate_media_descriptor_writer_new_discover (GstValidateRunner * runner,
gst_validate_media_descriptor_writer_add_stream (writer, streaminfo);
}
} else {
gst_validate_media_descriptor_writer_add_stream (writer, streaminfo);
if (!GST_IS_DISCOVERER_AUDIO_INFO (info)
&& !GST_IS_DISCOVERER_AUDIO_INFO (info)
&& gst_discoverer_stream_info_get_next (streaminfo)) {
((GstValidateMediaDescriptor *) writer)->filenode->caps =
gst_discoverer_stream_info_get_caps (streaminfo);
streaminfo = gst_discoverer_stream_info_get_next (streaminfo);
}
do {
gst_validate_media_descriptor_writer_add_stream (writer, streaminfo);
} while ((streaminfo = gst_discoverer_stream_info_get_next (streaminfo)));
}
} else {
GST_VALIDATE_REPORT (writer, FILE_NO_STREAM_INFO,