changeset 3966:ecda04452d14

Automated merge with ssh://hg.atheme.org//hg/audacious
author William Pitcock <nenolod@atheme.org>
date Sat, 17 Nov 2007 06:22:27 -0600
parents aea8b763b134 (current diff) 32bd9d553b0b (diff)
children efd7ec36483e f1ed63913f1c
files
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Sat Nov 17 06:21:00 2007 -0600
+++ b/src/audacious/input.c	Sat Nov 17 06:22:27 2007 -0600
@@ -318,9 +318,9 @@
 
     vfs_rewind(fd);
 
-    if (ip->probe_for_tuple &&
-        cfg.use_pl_metadata &&
-        (!loading || (loading && cfg.get_info_on_load)) ) {
+    /* some input plugins provide probe_for_tuple() only. */
+    if ( (ip->probe_for_tuple && !ip->is_our_file_from_vfs && !ip->is_our_file) ||
+         (ip->probe_for_tuple && (cfg.use_pl_metadata && (!loading || (loading && cfg.get_info_on_load)))) ) {
 
         Tuple *tuple = ip->probe_for_tuple(filename_proxy, fd);
 
--- a/src/audacious/pluginenum.c	Sat Nov 17 06:21:00 2007 -0600
+++ b/src/audacious/pluginenum.c	Sat Nov 17 06:22:27 2007 -0600
@@ -885,6 +885,12 @@
     }
 }
 
+static void
+remove_list(gpointer key, gpointer value, gpointer data)
+{
+    g_list_free(*(GList **)value);
+}
+
 void
 plugin_system_cleanup(void)
 {
@@ -1052,5 +1058,6 @@
     }
 
     mowgli_dictionary_destroy(plugin_dict, NULL, NULL);
+    g_hash_table_foreach(ext_hash, remove_list, NULL);
     g_hash_table_remove_all(ext_hash);
 }