From cac572ec5de99dde5f60927840097ac94452e0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 24 Sep 2013 12:47:26 +0200 Subject: [PATCH] playbin: Make sure to cache context types we did not store yet https://bugzilla.gnome.org/show_bug.cgi?id=708668 --- gst/playback/gstplaybin2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 49565c8377..91dbb0e3c8 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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);