File thunar-media-tags-plugin-0.1.2-check-valid-audio.patch of Package thunar-plugins

diff -urNp thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/media-tags-provider.c thunar-media-tags-plugin-0.1.2/thunar-plugin/media-tags-provider.c
--- thunar-media-tags-plugin-0.1.2.orig/thunar-plugin/media-tags-provider.c	2006-08-02 08:55:57.000000000 +0200
+++ thunar-media-tags-plugin-0.1.2/thunar-plugin/media-tags-provider.c	2011-01-23 13:17:33.000000000 +0100
@@ -163,10 +163,11 @@ media_tags_get_audio_file_supported (Thu
 
   if (G_LIKELY (taglib_file != NULL))
     {
+      /* Check that the file contains valid audio info */
+      supported = taglib_file_is_valid (taglib_file);
+
       /* Free the taglib file */
       taglib_file_free (taglib_file);
-
-      supported = TRUE;
     }
 
   g_free (filename);