bin: Make sure to cache context types that we did not store yet
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Sep 2013 10:46:52 +0000 (12:46 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 24 Sep 2013 10:46:52 +0000 (12:46 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=708668

gst/gstbin.c

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