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

gst/playback/gstplaybin2.c

index 49565c8377536a5bcfb2e096622b739a3834e5b2..91dbb0e3c80b1c043b27d06ca252a47c374c48c8 100644 (file)
@@ -4087,7 +4087,7 @@ gst_play_bin_update_context (GstPlayBin * playbin, GstContext * context)
     }
   }
   /* Not found? Add */
-  if (l != NULL)
+  if (l == NULL)
     playbin->contexts =
         g_list_prepend (playbin->contexts, gst_context_ref (context));
   GST_OBJECT_UNLOCK (playbin);