[Xfce4-commits] <thunar-media-tags-plugin:master> Call taglib_file_is_valid() for input audio files

Nick Schermer noreply at xfce.org
Wed Nov 30 19:40:05 CET 2011


Updating branch refs/heads/master
         to 87cb5f9a738da648d48e1222aede52c79b2d2a4c (commit)
       from b9a7d39a8342d32cee1506fa2bad7a317a5bcdfd (commit)

commit 87cb5f9a738da648d48e1222aede52c79b2d2a4c
Author: Lionel Le Folgoc <mrpouit at ubuntu.com>
Date:   Sun Mar 7 20:31:31 2010 +0100

    Call taglib_file_is_valid() for input audio files
    
    Check that the file contains valid audio information to determine whether
    the plugin should act on it or not.

 thunar-plugin/media-tags-provider.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/thunar-plugin/media-tags-provider.c b/thunar-plugin/media-tags-provider.c
index a7604ea..2c31a98 100644
--- a/thunar-plugin/media-tags-provider.c
+++ b/thunar-plugin/media-tags-provider.c
@@ -163,10 +163,11 @@ media_tags_get_audio_file_supported (ThunarxFileInfo *info)
 
   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);


More information about the Xfce4-commits mailing list