emotion gstreamer1: Set visualizations if the vis name is not NULL

and not the other way around.
This commit is contained in:
Sebastian Dröge 2014-01-13 10:02:34 +01:00
parent a39f9ca579
commit 25fa72e295
1 changed files with 1 additions and 1 deletions

View File

@ -1382,7 +1382,7 @@ _bus_main_handler(void *data)
gint flags;
const char *vis_name;
if (!(vis_name = emotion_visualization_element_name_get(ev->vis)))
if ((vis_name = emotion_visualization_element_name_get(ev->vis)))
{
vis = gst_element_factory_make(vis_name, "vis");
g_object_set(G_OBJECT(ev->pipeline), "vis-plugin", vis, NULL);