bin: Make sure to cache context types that we did not store yet

https://bugzilla.gnome.org/show_bug.cgi?id=708668
This commit is contained in:
Sebastian Dröge 2013-09-24 12:46:52 +02:00
parent e658379534
commit ccfca8f66f

View file

@ -3320,7 +3320,7 @@ gst_bin_update_context (GstBin * bin, GstContext * context)
} }
} }
/* Not found? Add */ /* Not found? Add */
if (l != NULL) if (l == NULL)
bin->priv->contexts = bin->priv->contexts =
g_list_prepend (bin->priv->contexts, gst_context_ref (context)); g_list_prepend (bin->priv->contexts, gst_context_ref (context));
GST_OBJECT_UNLOCK (bin); GST_OBJECT_UNLOCK (bin);