Commit cb96d028 authored by Thibault Saunier's avatar Thibault Saunier 🌵

Use the new GstDiscoverer caching feature

parent 31ccb310
...@@ -581,6 +581,7 @@ ges_uri_clip_asset_request_sync (const gchar * uri, GError ** error) ...@@ -581,6 +581,7 @@ ges_uri_clip_asset_request_sync (const gchar * uri, GError ** error)
data.ml = g_main_loop_new (NULL, TRUE); data.ml = g_main_loop_new (NULL, TRUE);
g_object_get (previous_discoverer, "timeout", &timeout, NULL); g_object_get (previous_discoverer, "timeout", &timeout, NULL);
klass->discoverer = gst_discoverer_new (timeout, error); klass->discoverer = gst_discoverer_new (timeout, error);
g_object_set (klass->discoverer, "use-cache", TRUE, NULL);
if (!klass->discoverer) { if (!klass->discoverer) {
klass->discoverer = previous_discoverer; klass->discoverer = previous_discoverer;
......
...@@ -188,6 +188,7 @@ ges_timeline_new_from_uri_from_main_thread (TimelineConstructionData * data) ...@@ -188,6 +188,7 @@ ges_timeline_new_from_uri_from_main_thread (TimelineConstructionData * data)
* have the chance to discover the project assets */ * have the chance to discover the project assets */
g_mutex_lock (&data->lock); g_mutex_lock (&data->lock);
klass->discoverer = gst_discoverer_new (timeout, &data->error); klass->discoverer = gst_discoverer_new (timeout, &data->error);
g_object_set (klass->discoverer, "use-cache", TRUE, NULL);
if (data->error) { if (data->error) {
klass->discoverer = previous_discoverer; klass->discoverer = previous_discoverer;
g_mutex_unlock (&data->lock); g_mutex_unlock (&data->lock);
......
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