Use the new GstDiscoverer caching feature
authorThibault Saunier <tsaunier@igalia.com>
Fri, 7 Jun 2019 20:12:26 +0000 (16:12 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 5 Jul 2019 21:54:29 +0000 (17:54 -0400)
ges/ges-uri-asset.c
plugins/ges/gesdemux.c

index abf62e01afc94613abe32925541556d9a086460e..760801761c67ba30c2ccc90477e7d11810f80a6a 100644 (file)
@@ -581,6 +581,7 @@ ges_uri_clip_asset_request_sync (const gchar * uri, GError ** error)
   data.ml = g_main_loop_new (NULL, TRUE);
   g_object_get (previous_discoverer, "timeout", &timeout, NULL);
   klass->discoverer = gst_discoverer_new (timeout, error);
+  g_object_set (klass->discoverer, "use-cache", TRUE, NULL);
   if (!klass->discoverer) {
     klass->discoverer = previous_discoverer;
 
index 5718bea97e5302ea6f876a66925bf1ca6e9d19b8..0b2c771cacc5d8424871b7076885009a3ae2a4e3 100644 (file)
@@ -188,6 +188,7 @@ ges_timeline_new_from_uri_from_main_thread (TimelineConstructionData * data)
    * have the chance to discover the project assets */
   g_mutex_lock (&data->lock);
   klass->discoverer = gst_discoverer_new (timeout, &data->error);
+  g_object_set (klass->discoverer, "use-cache", TRUE, NULL);
   if (data->error) {
     klass->discoverer = previous_discoverer;
     g_mutex_unlock (&data->lock);