]> git.sesse.net Git - mlt/blobdiff - src/modules/jackrack/plugin_mgr.c
Fix pause for noise producer.
[mlt] / src / modules / jackrack / plugin_mgr.c
index a5842105c565dd6ab490e09e765703c5a79df8ea..386cb25aca85d0e34f30ca30a86b4ca1b1341a75 100644 (file)
@@ -60,7 +60,7 @@ plugin_is_valid (const LADSPA_Descriptor * descriptor)
         ocount++;
     }
   
-  if (icount == 0 || ocount == 0)
+  if (ocount == 0)
     return FALSE;
   
   return TRUE;
@@ -237,10 +237,8 @@ plugin_mgr_get_path_plugins (plugin_mgr_t * plugin_mgr)
     ladspa_path = g_strdup ("/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/lib64/ladspa");
 #endif
   
-  dir = strtok (ladspa_path, ":");
-  do
+  for (dir = strtok (ladspa_path, ":"); dir; dir = strtok (NULL, ":"))
     plugin_mgr_get_dir_plugins (plugin_mgr, dir);
-  while ((dir = strtok (NULL, ":")));
 
   g_free (ladspa_path);
 }