playsink: Fix visualizations if no visualization plugin was set

https://bugzilla.gnome.org/show_bug.cgi?id=712280
This commit is contained in:
Sebastian Dröge 2013-11-26 12:03:24 +01:00
parent 81471099d2
commit 0e9806a03e

View file

@ -2842,6 +2842,8 @@ gen_vis_chain (GstPlaySink * playsink)
GST_DEBUG_OBJECT (playsink, "trying goom");
elem = gst_element_factory_make ("goom", "vis");
chain->vis = try_element (playsink, elem, TRUE);
gst_object_replace ((GstObject **) & playsink->visualisation,
(GstObject *) elem);
}
if (chain->vis == NULL)
goto no_goom;