mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
mi-info: go back to use the sync api
If we discover 'too quickly' the machinery seems to get into a state, where it does not discover anything anymore.
This commit is contained in:
parent
8abadb14f9
commit
a61447f7d3
1 changed files with 3 additions and 1 deletions
|
@ -316,7 +316,8 @@ public class MediaInfo.Info : Box
|
|||
debug ("Failed to query file info from %s: %s: %s", uri, e.domain.to_string (), e.message);
|
||||
}
|
||||
|
||||
if (false) {
|
||||
debug ("Discovering '%s'", uri);
|
||||
if (true) {
|
||||
/* sync API */
|
||||
try {
|
||||
process_new_uri (dc.discover_uri (uri));
|
||||
|
@ -324,6 +325,7 @@ public class MediaInfo.Info : Box
|
|||
debug ("Failed to extract metadata from %s: %s: %s", uri, e.domain.to_string (), e.message);
|
||||
}
|
||||
} else {
|
||||
// TODO(ensonic): this breaks when discovering 'too quickly'
|
||||
/* async API */
|
||||
dc.stop();
|
||||
dc.start();
|
||||
|
|
Loading…
Reference in a new issue