mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
validate: Fix media descriptor mp3 like formats
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/216>
This commit is contained in:
parent
56b745f4f8
commit
bab10bd05f
1 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue