From a6a1ae2f638def94fea26738e05b699328bf270b Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 25 Jan 2011 15:07:07 +0200 Subject: [PATCH] info: change the order of asyn disco calls Starting disco before enqueueuing uris seems to make it work. --- mediainfo/src/mi-info.vala | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala index 370e43cd64..987140a831 100644 --- a/mediainfo/src/mi-info.vala +++ b/mediainfo/src/mi-info.vala @@ -293,7 +293,7 @@ public class MediaInfo.Info : VPaned debug ("Failed to query file info from %s: %s: %s", uri, e.domain.to_string (), e.message); } - if (true) { + if (false) { /* sync API */ try { on_uri_discovered (dc.discover_uri (uri), null); @@ -302,13 +302,9 @@ public class MediaInfo.Info : VPaned } } else { /* async API */ - stdout.printf ("Stop current discover\n"); dc.stop(); - stdout.printf ("Enqueue uri\n"); - dc.discover_uri_async (uri); - stdout.printf ("Start discover\n"); dc.start(); - stdout.printf ("Started discover\n"); + dc.discover_uri_async (uri); } } return (res); @@ -331,8 +327,6 @@ public class MediaInfo.Info : VPaned Caps caps; Structure s; - stdout.printf ("uri has been discovered\n"); - if (e != null) { debug ("Failed to extract metadata from %s: %s: %s", uri, e.domain.to_string (), e.message); }