summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-09-24 12:46:52 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-24 12:46:52 +0200
commitccfca8f66f33bc2d571348ad8cbbe15aba7f6130 (patch)
tree8463e83a0b191c8b4dfc8b0cb80030f668bdf88d
parente658379534eb4a90b654d90f1d0bdf86f37c6e31 (diff)
bin: Make sure to cache context types that we did not store yet
https://bugzilla.gnome.org/show_bug.cgi?id=708668
-rw-r--r--gst/gstbin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstbin.c b/gst/gstbin.c
index c03f9e052..4bfd6d54a 100644
--- a/gst/gstbin.c
+++ b/gst/gstbin.c
@@ -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);