~ubuntu-branches/ubuntu/lucid/thunar-media-tags-plugin/lucid

« back to all changes in this revision

Viewing changes to debian/patches/0001-Call-taglib_file_is_valid-for-input-audio-files.patch

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-03-08 20:26:15 UTC
  • Revision ID: james.westby@ubuntu.com-20100308202615-td1sf1aavdfdobhk
Tags: 0.1.2+svn-r04939-0ubuntu4
debian/patches/0001-Call-taglib_file_is_valid-for-input-audio-files.patch:
check that the file audio metadata are valid before displaying them,
should fix Thunar crashes on weird ogg (video?) files. lp: #532153

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 6b3228ec80a1ce2fcf843b3a07bffbe1d354a556 Mon Sep 17 00:00:00 2001
 
2
From: Lionel Le Folgoc <mrpouit@ubuntu.com>
 
3
Date: Sun, 7 Mar 2010 20:31:31 +0100
 
4
Subject: [PATCH] Call taglib_file_is_valid() for input audio files
 
5
 
 
6
Check that the file contains valid audio information to determine whether
 
7
the plugin should act on it or not.
 
8
---
 
9
 thunar-plugin/media-tags-provider.c |    5 +++--
 
10
 1 files changed, 3 insertions(+), 2 deletions(-)
 
11
 
 
12
diff --git a/thunar-plugin/media-tags-provider.c b/thunar-plugin/media-tags-provider.c
 
13
index a7604ea..2c31a98 100644
 
14
--- a/thunar-plugin/media-tags-provider.c
 
15
+++ b/thunar-plugin/media-tags-provider.c
 
16
@@ -163,10 +163,11 @@ media_tags_get_audio_file_supported (ThunarxFileInfo *info)
 
17
 
 
18
   if (G_LIKELY (taglib_file != NULL))
 
19
     {
 
20
+      /* Check that the file contains valid audio info */
 
21
+      supported = taglib_file_is_valid (taglib_file);
 
22
+
 
23
       /* Free the taglib file */
 
24
       taglib_file_free (taglib_file);
 
25
-
 
26
-      supported = TRUE;
 
27
     }
 
28
 
 
29
   g_free (filename);
 
30
-- 
 
31
1.6.3.3
 
32