Commit b632b206 authored by Vineeth TM's avatar Vineeth TM Committed by Sebastian Dröge
Browse files

tools: discoverer: When info is NULL just print error and return

In case discover_uri returns NULL info, passing the info to discoverer APIs
result in critical assertion errors. Hence instead of passing NULL info along,
print the error and return.
parent 2727ca01
......@@ -381,9 +381,16 @@ print_properties (GstDiscovererInfo * info, gint tab)
static void
print_info (GstDiscovererInfo * info, GError * err)
GstDiscovererResult result = gst_discoverer_info_get_result (info);
GstDiscovererResult result;
GstDiscovererStreamInfo *sinfo;
if (!info) {
g_print ("Could not discover URI\n");
g_print (" %s\n", err->message);
result = gst_discoverer_info_get_result (info);
g_print ("Done discovering %s\n", gst_discoverer_info_get_uri (info));
switch (result) {
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