mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
info: change the order of asyn disco calls
Starting disco before enqueueuing uris seems to make it work.
This commit is contained in:
parent
0d6ed4a5bd
commit
a6a1ae2f63
1 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue