playsink: Fix visualizations if no visualization plugin was set
authorSebastian Dröge <sebastian@centricular.com>
Tue, 26 Nov 2013 11:03:24 +0000 (12:03 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Nov 2013 11:03:24 +0000 (12:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=712280

gst/playback/gstplaysink.c

index d192443befc01c34884f2aaa11add4eeb5a7470c..2154fd2c5bce2af9d73f05c372c35ebd79b068f6 100644 (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;