Commit bab10bd0 authored by Thibault Saunier's avatar Thibault Saunier 🌵 Committed by GStreamer Marge Bot

validate: Fix media descriptor mp3 like formats

Part-of: <gstreamer/gst-devtools!216>
parent 56b745f4
Pipeline #182156 passed with stages
in 25 minutes and 31 seconds
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment