From 6b3228ec80a1ce2fcf843b3a07bffbe1d354a556 Mon Sep 17 00:00:00 2001 From: Lionel Le Folgoc Date: Sun, 7 Mar 2010 20:31:31 +0100 Subject: [PATCH] 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); -- 1.6.3.3