mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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);
|
gst_validate_media_descriptor_writer_add_stream (writer, streaminfo);
|
||||||
}
|
}
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
GST_VALIDATE_REPORT (writer, FILE_NO_STREAM_INFO,
|
GST_VALIDATE_REPORT (writer, FILE_NO_STREAM_INFO,
|
||||||
|
|
Loading…
Reference in a new issue