}
}
- writer =
- gst_media_descriptor_writer_new (runner,
- gst_discoverer_info_get_uri (info),
- gst_discoverer_info_get_duration (info),
- gst_discoverer_info_get_seekable (info));
+ streaminfo = gst_discoverer_info_get_stream_info (info);
- if (handle_g_logs)
- gst_validate_reporter_set_handle_g_logs (GST_VALIDATE_REPORTER (writer));
+ if (streaminfo) {
+ writer =
+ gst_media_descriptor_writer_new (runner,
+ gst_discoverer_info_get_uri (info),
+ gst_discoverer_info_get_duration (info),
+ gst_discoverer_info_get_seekable (info));
- tags = gst_discoverer_info_get_tags (info);
- if (tags)
- gst_media_descriptor_writer_add_taglist (writer, tags);
+ if (handle_g_logs)
+ gst_validate_reporter_set_handle_g_logs (GST_VALIDATE_REPORTER (writer));
- streaminfo = gst_discoverer_info_get_stream_info (info);
+ tags = gst_discoverer_info_get_tags (info);
+ if (tags)
+ gst_media_descriptor_writer_add_taglist (writer, tags);
- if (streaminfo) {
if (GST_IS_DISCOVERER_CONTAINER_INFO (streaminfo)) {
((GstMediaDescriptor *) writer)->filenode->caps =
gst_discoverer_stream_info_get_caps (GST_DISCOVERER_STREAM_INFO
} else {
GST_VALIDATE_REPORT (writer, FILE_NO_STREAM_INFO,
"Discoverer info, does not contain the stream info");
+ goto out;
}
media_descriptor = (GstMediaDescriptor *) writer;