playbin: Make sure to cache context types 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:47:26 +02:00
parent 8ba90931ae
commit cac572ec5d

View 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);